my (...) = @_; is a very common way of getting args. I can't believe it wasn't mentioned.
sub frobnicate { my ($foo, $bar, @remainder) = @_; print $remainder[0] == 3 ? 'yum' :'eew'; }
In reply to Re^3: Several stupid questions about subs
by ikegami
in thread Several stupid questions about subs
by bryan172
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |