No such thing as a small change | |
PerlMonks |
Re: Is it possible to do pass by reference in Perl?by RedDragon (Initiate) |
on May 18, 2002 at 08:49 UTC ( [id://167482]=note: print w/replies, xml ) | Need Help?? |
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
|
|