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:
Prints:sub f { my ($x,$y,@z) = @_; print "$x\n$y\n@z\n"; } f("first","second","third","fourth");
first second third fourth
|
---|
In Section
Seekers of Perl Wisdom