in reply to Re^3: Breaking The Rules
in thread Breaking The Rules
Not true:
$var is now guaranteed to have a defined value on every iteration, regardless of the file's contents. Granted, there are cases where there is no reasonable default, but, as the programmer, I do still have control over whether $var is defined or not, should I choose to exercise it.while (<FILE1>) { $var = GetVar($_) || $some_reasonable_default; };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Breaking The Rules
by Unanimous Monk (Sexton) on Jun 02, 2006 at 18:01 UTC | |
by adrianh (Chancellor) on Jun 04, 2006 at 09:13 UTC | |
by Unanimous Monk (Sexton) on Jun 05, 2006 at 16:07 UTC |