Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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??


in reply to Is it better to return a hash of hashes or a reference to a hash of hashes?

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...
  • Comment on Re: Is it better to return a hash of hashes or a reference to a hash of hashes?