|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: shift vs @_by grep (Monsignor) |
| on Oct 02, 2006 at 14:36 UTC ( [id://575925]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I will often use multiple shifts if I want to short circuit a sub when a non-true value is passed.
Again I'll note that this works only for non-true values, IOW if 0(zero) is acceptable then don't do this.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||