laziness, impatience, and hubris | |
PerlMonks |
Re^2: Simple Pass By Referenceby tomazos (Deacon) |
on Jul 26, 2005 at 00:00 UTC ( [id://478024]=note: print w/replies, xml ) | Need Help?? |
That duplicates the content of $_[0] doesn't it? (Your first example)
I want to pass it by reference, and give it a meaningful identifier in the context of the subroutine. (ie not have to use $_[0] throughout the subroutine.) (Your second example) -Andrew.
In Section
Seekers of Perl Wisdom
|
|