in reply to Re^2: Double your return!!!!
in thread Double your return!!!!
!!$ok; is better, though I did say "In most cases". The only situation I can think of where
return $ok; instead of
return 1 if $ok; is going to fail, is if the calling code is using the boolean return value to do math?
Can you think of any others.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Double your return!!!!
by Aristotle (Chancellor) on Feb 19, 2003 at 11:13 UTC | |
by BrowserUk (Patriarch) on Feb 19, 2003 at 13:19 UTC |