in reply to Sorting Multilevel Hashes
To my eyes that code is bordering on unmaintainable. If you are attempting to sort by key at each level in turn (which is what I think you are doing - correct me if that isn't the case) then think about recursion. Applying the relevant FAQ (which also discusses sorting by value) just once in a recursive subroutine should do the trick without resorting to $foo{$bar}{$baz}{$quux}{$frob} constructs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting Multilevel Hashes
by newCoder (Initiate) on Apr 24, 2014 at 23:00 UTC | |
by hippo (Archbishop) on Apr 25, 2014 at 08:23 UTC |