X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FPOSIX%2FPOSIX.pod;h=1a09c6915a4fc4265498e9f4e2958f52810fa8ce;hb=6309100e80203b1dd76aa4be8a42b20fb0415252;hp=d7fa8f30f506457f3c2f4dec35f62aaf39a2b480;hpb=aaa270e5c2fde5136fc8cb50b57a6bb908ef1616;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod index d7fa8f3..1a09c69 100644 --- a/ext/POSIX/POSIX.pod +++ b/ext/POSIX/POSIX.pod @@ -1342,8 +1342,8 @@ To parse a string $str as a floating point number use The second returned item and $! can be used to check for valid input: - if (($str eq '') || ($n_unparsed != 0) || !$!) { - die "Non-numeric input $str" . $! ? ": $!\n" : "\n"; + if (($str eq '') || ($n_unparsed != 0) || $!) { + die "Non-numeric input $str" . ($! ? ": $!\n" : "\n"); } When called in a scalar context strtod returns the parsed number.