Perl: the Markov chain saw | |
PerlMonks |
Re: Is it better to return a hash of hashes or a reference to a hash of hashes?by merlyn (Sage) |
on Oct 08, 2001 at 19:20 UTC ( [id://117472]=note: print w/replies, xml ) | Need Help?? |
References are a single item, while lists are the entire list. In terms of speed, it's more expensive to pass a list than an single item. However, "better" is a relative term, so without more context...
In Section
Seekers of Perl Wisdom
|
|