|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Parameters, subs and the shift functionby larsen (Parson) |
| on Aug 19, 2003 at 07:08 UTC ( [id://284849]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||