Problems? Is your data what you think it is? | |
PerlMonks |
Re: Help with Hash of hashes, is there a better way?by roboticus (Chancellor) |
on Jun 01, 2006 at 11:02 UTC ( [id://553021]=note: print w/replies, xml ) | Need Help?? |
TeraMarv: Since you're concerned about the effort of traversing the data structure and asked for alternative data structures, I have a couple of thoughts. While it's nice to have a perfect representation of your system, it may be that your code doesn't really do anything fancy with $env, $platform, etc., and only need them in a couple of edge cases. In that case, you may want to flatten your data structure by combining the keys, allowing you to split out the parts you want if/when you need them. Something like the following (contrived) example where we need a disk usage warning report:
--roboticus
In Section
Seekers of Perl Wisdom
|
|