If you want to pass more than one array or hash into a function--or return them from it--and have them maintain their integrity, then you're going to have to use an explicit pass-by-reference. Before you do that, you need to understand references as detailed in perlref. This section may not make much sense to you otherwise.Definitively something to read!
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
In reply to Re: pass several arguments to a subroutine
by polettix
in thread pass several arguments to a subroutine
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |