good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: passing multiple items to a subroutineby Crian (Curate) |
on Mar 08, 2004 at 13:44 UTC ( [id://334802]=note: print w/replies, xml ) | Need Help?? |
If you have to give more then one array to a subroutine, you have to use references.
Update: In your function you can access the arrays via the references (and change the original Arrays, or you copy them to local arrays, if you dislike the references...
or
In Section
Seekers of Perl Wisdom
|
|