!!$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.
In reply to Re: Re^2: Double your return!!!!
by BrowserUk
in thread Double your return!!!!
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |