projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaa270e
)
fix POSIX::strtod error handling documentation
author
Dave Mitchell
<davem@fdisolutions.com>
Wed, 2 Feb 2005 18:25:00 +0000
(18:25 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Wed, 2 Feb 2005 18:25:00 +0000
(18:25 +0000)
p4raw-id: //depot/perl@23921
ext/POSIX/POSIX.pod
patch
|
blob
|
history
diff --git
a/ext/POSIX/POSIX.pod
b/ext/POSIX/POSIX.pod
index
d7fa8f3
..
1a09c69
100644
(file)
--- 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.