Think about Loose Coupling | |
PerlMonks |
Re: Argument Passing, preference or performance ?by Anonymous Monk |
on Nov 11, 2002 at 22:44 UTC ( [id://212129]=note: print w/replies, xml ) | Need Help?? |
Logically they are the same, and even the gracefulness are the same. However there is one situation, I would suggest to use @_ instead of shift, to provide the elegance. That's the time you pass named parms, for example:
Well, you can use shift, but in this case, a little bit tasteless, is it?
In Section
Seekers of Perl Wisdom
|
|