Think about Loose Coupling | |
PerlMonks |
Re: passing an array and some scalars to a subroutneby olus (Curate) |
on Mar 06, 2009 at 14:22 UTC ( [id://748866]=note: print w/replies, xml ) | Need Help?? |
You can also shift the args. Also, since the arguments are passed as a list, you could start considering passing references to the arrays and deref them in the sub. That way you can pass other args after the first array, or multiple arrays (that would otherwise be considered a single one).
In Section
Seekers of Perl Wisdom
|
|