"be consistent" | |
PerlMonks |
Re: To || or not to or and why.by dws (Chancellor) |
on Sep 15, 2003 at 22:21 UTC ( [id://291671]=note: print w/replies, xml ) | Need Help?? |
I want to pass a value to a class method. If the value is undef, then I want it to immediately return undef.
What's wrong with splitting this into two statements? You still get the immediate return, the result is more readable, and I really doubt you could measure a performance difference.
In Section
Seekers of Perl Wisdom
|
|