I'm in the middle of some administrative type of scripting and my
skill level is pretty low. I ran up on a need to pass two different
kinds of chunks of into to a sub function.

I'm familiar with the `func($thg1, thg2, thg3);' kind of syntax that
ends up as: 3 elements of `...@_' but I want to pass in an array, AND some
control variables that control reading of `...@_'.

First I thought to make them the first whatever number of elements so
to be able to separate them from `...@_' with `shift', once inside the
sub func, but I suspect there is some simple syntax to use right at
the start (here func(...)) that will tell the sub function that some
of the args are not part of @_.

Where can I see some examples of that?


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to