in reply to hash of hashes sort second level keys
Thanks for all of the replies. I thought the answer may be along the lines of what all of you are saying. My actual problem is quite a bit more complex than this but the answers to this simple question tells me there is no easy way to accomplish what I am trying to do. I actually have a hohref, hr, that is 5 layers deep. I am trying to sort the entire hr on the keys of layer 4 first and layer 3 second. Since the hr is linear, I am stepping through the entire hash recording each set of keys in an array. I then bubble sort the keys keeping track of each relationship and Voila I have the output for which I was looking. Is there a better way to do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash of hashes sort second level keys
by kennethk (Abbot) on Feb 19, 2010 at 22:01 UTC | |
by rubasov (Friar) on Feb 19, 2010 at 22:42 UTC | |
by aeaton1843 (Acolyte) on Feb 19, 2010 at 23:40 UTC |