http://qs321.pair.com?node_id=1104445


in reply to Re^2: Using Shift with Parameters in a subroutine
in thread Using Shift with Parameters in a subroutine

If you just want to scoop the first couple of parameters, you can do something like this:
sub f { my ($x,$y,@z) = @_; print "$x\n$y\n@z\n"; } f("first","second","third","fourth");
Prints:
first second third fourth