Problems? Is your data what you think it is? | |
PerlMonks |
Re: Relative Merits of Referencesby Hue-Bond (Priest) |
on May 11, 2006 at 13:51 UTC ( [id://548706]=note: print w/replies, xml ) | Need Help?? |
References are useful to pass data to functions. Using references, you pass a single scalar to the function, so perl doesn't have to copy the entire thing. Update: And they are also useful to create complex data structures. A hash of hashes is really a hash of references to hashes. --
In Section
Seekers of Perl Wisdom
|
|