http://www.perlmonks.org?node_id=11125884


in reply to using ref to hash of hash effectively

You may also trade space for complexity, and maybe a few more brain cells, by transforming a cononical hash into data structures that might be more efficient for computing and tracking various things. Although it's sometimes implied, there is no reason you have to have just one hash (or stucture) - the biggest issue there is going to be ensuring all of your structures are synchronized. Again, this is in the event that you find yourself doing mental hoops to iterate over a data structure when it'd be a lot easier to compute or look up what you need after a straightforward transformation.
  • Comment on Re: using ref to hash of hash effectively