in reply to Relative Merits of References
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.
--
David Serrano
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Relative Merits of References
by blazar (Canon) on May 11, 2006 at 14:29 UTC | |
Re^2: Relative Merits of References
by pbeckingham (Parson) on May 11, 2006 at 14:54 UTC |