P is for Practical | |
PerlMonks |
Re: Parameters, subs and the shift functionby larsen (Parson) |
on Aug 19, 2003 at 11:08 UTC ( [id://284849]=note: print w/replies, xml ) | Need Help?? |
How does the sub manage to figure out what's the size of @a and @b so that when you use the shift tool you don't end up with @array1 being ("mary","had","a","little","lamb","!","London","Bridge","is"); and @array2 nothing...No way. See "Pass by reference" in perlsub.
In Section
Seekers of Perl Wisdom
|
|