|
|
| "be consistent" | |
| PerlMonks |
Re: Is it possible to do pass by reference in Perl?by RedDragon (Initiate) |
| on May 18, 2002 at 04:49 UTC ( [id://167482]=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.
It is possible to pass by reference in perl.
The argument list u get inside ur subroutine via @_
are implicit reference to values that were passed in from inside
from outside.i.e. if u pass in a list of strings,
inside the body of the sub,change those strings,then
they will be modified outside the subroutine.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||