in reply to Re^2: What is the correct definition of False and Null in Perl?
in thread What is the correct definition of False and Null in Perl?
every string starting with a number (plus leading whitespaces) evaluates to that number.
The only specialty about "0 but true" are the missing messages under "warnings".
DB<102> $a=" 41 The ultimate answer!" DB<103> print ++$a 42
I would rather prefer "0.0" or "0E0", if I was calling functions in scalar context.
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What is the correct definition of False and Null in Perl?
by Marshall (Canon) on Oct 08, 2011 at 18:40 UTC | |
by LanX (Saint) on Oct 08, 2011 at 18:52 UTC | |
by Marshall (Canon) on Oct 27, 2011 at 02:24 UTC |