in reply to C++ style boolean type in Perl?
will work every time. However, in Perl you have:if (x == FALSE)
How do these work? What if $x = 0? or ''? or undef or 0.0? Are you sure? Perl has mutliple false values, so switching to a single false value is just asking for trouble.if ($x == $false) if ($x eq $false)
Server no purpose, confusing to others, and it just begging for weird ass bugs.#define BEGIN { #define END }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: C++ style boolean type in Perl?
by esharris (Monk) on Nov 20, 2005 at 11:32 UTC |