Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How to pass by referenceby bbfu (Curate) |
on Jul 31, 2006 at 07:15 UTC ( [id://564696]=note: print w/replies, xml ) | Need Help?? |
There's a couple of options. You can use the aliasing behavior of @_, or you can pass an actual reference.
The latter is probably better, as it is less likely to cause surprise the caller (ie, it's more explicit that you're potentially modifying the function parameter). bbfu
In Section
Seekers of Perl Wisdom
|
|