diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-09-17 19:25:26 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-09-17 19:25:48 -0700 |
commit | 32860eeee0f353d935f076ba0c0bbf41708a6d79 (patch) | |
tree | 82da27b533b46caa3076bdeef5e23f752a2b8309 /pod/perldata.pod | |
parent | 4e9a627e231c610f14c7fe78859949e1afa0a053 (diff) | |
download | perl-32860eeee0f353d935f076ba0c0bbf41708a6d79.tar.gz |
perldata: Mention undefined as a false val
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index c54cb9143e..7899e396e0 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -179,8 +179,9 @@ are considered pretty much the same thing for nearly all purposes, references are strongly-typed, uncastable pointers with builtin reference-counting and destructor invocation. -A scalar value is interpreted as TRUE in the Boolean sense if it is not -the null string or the number 0 (or its string equivalent, "0"). The +A scalar value is interpreted as FALSE in the Boolean sense +if it is undefined, the null string or the number 0 (or its +string equivalent, "0"), and TRUE if it is anything else. The Boolean context is just a special kind of scalar context where no conversion to a string or a number is ever performed. X<boolean> X<bool> X<true> X<false> X<truth> |