|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Answer: Is it better to return a hash of hashes or a reference to a hash of hashes? |
| ( #117472=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > subroutines > Is it better to return a hash of hashes or a reference to a hash of hashes? contributed by merlyn
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...
|
|
||||||||||||||||||