|
|
| "be consistent" | |
| PerlMonks |
Re^2: passing arrays to subroutinesby QM (Priest) |
| on Mar 16, 2005 at 14:36 UTC ( #439954=note: print w/ replies, xml ) | Need Help?? |
|
There are two ways of passing data to a subroutine:Actually, there's also:
- call by name See Parameter (Computer Science) on Wikipedia. Most (all?) of these can be done in Perl. In Perl, it really comes down to two things:
1) Parameters are passed as a list of scalars. -QM
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||