XP is just a number | |
PerlMonks |
Re: Is it possible to do pass by reference in Perl?by tilly (Archbishop) |
on Sep 24, 2001 at 16:12 UTC ( [id://114294]=note: print w/replies, xml ) | Need Help?? |
In addition to the answers above it is possible to pass
arrays and hashes by reference without using
a \. The way to do this is to define a function
with a prototype as explained in perlsub.
For a more complete explanation I can recommend FMTYEWTK About Prototypes, which says in detail what they are, where they are buggy, and the various design flaws that make them something to avoid on the whole.
In Section
Seekers of Perl Wisdom
|
|