From: Dave Mitchell Date: Wed, 2 Feb 2005 18:25:00 +0000 (+0000) Subject: fix POSIX::strtod error handling documentation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6309100e80203b1dd76aa4be8a42b20fb0415252;hp=aaa270e5c2fde5136fc8cb50b57a6bb908ef1616;p=p5sagit%2Fp5-mst-13.2.git fix POSIX::strtod error handling documentation p4raw-id: //depot/perl@23921 --- 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.