Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Collecting all values with shiftby dws (Chancellor) |
on Aug 30, 2002 at 04:13 UTC ( [id://193995]=note: print w/replies, xml ) | Need Help?? |
What is the best and smartest way to get all values passed to a subroutine, when the number of incoming values is not known? while (shift) ?
@_ holds all of the values passed. my @copy = @_; # gets you a copy, if that's what you need
In Section
Seekers of Perl Wisdom
|
|