Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Ok, first of all... you should put a sort that large in a
subroutine, just for simplicity's sake...
Similar to that... make your code MUCH more readable :) Perl moans about $log not being there because it isn't... $log isn't filled until after the sort is done... your $log data is in $a and $b. So, let me get this straight... you want to sort at the first level of your hash, by a key in the 3rd level of your hash? The problem I see in this is... I assume you have many lines (i.e. $line data)? If that is true, then how do you find the category you need under many lines? Or is there just one line that has a 'time' category, and that is the one you need?
Can you give a small example of what your hash looks like?
In reply to Re: Re: Re: sorting hash of hashes
by suaveant
|
|