you have to use references
That's what the OP is doing.
The error is that (s)he is mixing shift and @_ inside the sub.
In reply to Re: Re: passing multiple items to a subroutine
by Anonymous Monk
in thread passing multiple items to a subroutine
by tommycahir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |