go ahead... be a heretic | |
PerlMonks |
Re: shift vs @_by hgolden (Pilgrim) |
on Oct 02, 2006 at 18:22 UTC ( [id://575921]=note: print w/replies, xml ) | Need Help?? |
To put it one way, they are always using @_. If you don't give an array to shift, it uses @_. I think the "shift" idiom caught on out of laziness, though it's not as slick with more than one argument. You can write: Likewise, you can write: for only one argument. Hays
In Section
Seekers of Perl Wisdom
|
|