summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2005-02-02 18:25:00 +0000
committerDave Mitchell <davem@fdisolutions.com>2005-02-02 18:25:00 +0000
commit6309100e80203b1dd76aa4be8a42b20fb0415252 (patch)
tree2f63e70328cd26a49b1f94622a9fb6906f354dbe /ext
parentaaa270e5c2fde5136fc8cb50b57a6bb908ef1616 (diff)
downloadperl-6309100e80203b1dd76aa4be8a42b20fb0415252.tar.gz
fix POSIX::strtod error handling documentation
p4raw-id: //depot/perl@23921
Diffstat (limited to 'ext')
-rw-r--r--ext/POSIX/POSIX.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod
index d7fa8f30f5..1a09c6915a 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.