|
|
| No such thing as a small change | |
| PerlMonks |
Re: passing variables between subroutinesby Grygonos (Chaplain) |
| on Jan 16, 2006 at 10:42 UTC ( [id://523523]=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.
you pull them off the @_ array you can shift them off the array individually or assign them in one shot as shown above. <edit> alternatively, if you have only one parameter you can do the following my $param_one = shift @_</edit>
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||