in reply to Re^3: Burned by precedence rules (== true)
in thread Burned by precedence rules
Even outlawing comparisons to the constants isn't enough.
sub is_tested { return FALSE; }
and then used as
if( is_tested() ) { print "is tested.\n"; }
and, by the way, FALSE is defined to be 2. This was the sort of thing that haunted me for days.
I was using those expressions to describe the problem not the usage.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Burned by precedence rules (fail() if "false";)
by tye (Sage) on Dec 28, 2008 at 21:06 UTC | |
by gwadej (Chaplain) on Dec 28, 2008 at 21:22 UTC | |
by MidLifeXis (Monsignor) on Dec 29, 2008 at 13:01 UTC | |
by Anonymous Monk on Dec 29, 2008 at 13:06 UTC | |
by MidLifeXis (Monsignor) on Dec 29, 2008 at 13:08 UTC | |
by swampyankee (Parson) on Dec 31, 2008 at 00:48 UTC | |
by gwadej (Chaplain) on Dec 31, 2008 at 04:33 UTC |