in reply to Passing different values into subroutines

If you want to pass 2+ arrays, 2+ hashes, or (1+ array and 1+ hash), you will need to pass by ref, as Boogman demonstrates.

If you have just one array or hash, you can pass it as an array or a hash. You will just have to take your args out in the proper order (one way or another).

See this node for details. It talks about shift, positional params, and pop (and refs, but you already have that info).

  • Comment on (kudra) Re: Passing different values into subroutines