|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^3: passing arrays to subroutinesby tlm (Prior) |
| on Mar 16, 2005 at 14:26 UTC ( #439951=note: print w/ replies, xml ) | Need Help?? |
|
Just to expand on this point for the OP's benefit, consider: Note that the bodies of ex2 and ex3 are identical. IMO, however, ex2 is superior, because it can take as arguments any number of array refs, whereas ex3 must take exactly three arrays as arguments. Follow-up question: is there any way to define a sub that takes as input one or more arrays? the lowliest monk
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||