in reply to [untitled node, ID 193991]

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