in reply to Re: Looking for less code
in thread Looking for less code
A simple rationale is that if you want to print $flag for debugging, "undef" is an error
How come? Last I looked it was a warning, and only if warnings are enabled.
Additionally it's a good idea to use Data::Dumper or something similar for debugging output anyway, so I don't see the point you're trying to make.
Another rationale would be that you KNOW that it is "false" not "undefined"!. So say so!
undef is also false - why would 0 be clearer false than undef? 0 is a number to me, not primarily a "false" boolean value.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Looking for less code
by Marshall (Canon) on Aug 11, 2009 at 09:15 UTC | |
by moritz (Cardinal) on Aug 11, 2009 at 09:22 UTC | |
by Marshall (Canon) on Aug 11, 2009 at 09:35 UTC | |
by JavaFan (Canon) on Aug 11, 2009 at 09:26 UTC | |
by Anonymous Monk on Aug 11, 2009 at 09:28 UTC | |
by Marshall (Canon) on Aug 11, 2009 at 09:49 UTC |