in reply to Re: Re: re: readibility
in thread sorting hash of hashes
Wait.. are you trying to sort all of the lines into a big mix of lines? so that individual lines from all the logs come out in order? If that is the case then you can't do it with a simple sort the way you have your hash of hashes set up. What you should do in that case is build a composite key... $log.$line or something similar, so then you would do...
See what I'm saying... because otherwise you can only sort to a granularity of the log level, or you can sort the lines in a log, but not both, without a lot more work...foreach (sort $logdata->{$a}{time} cmp $logdata->{$b}{time}) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: re: readibility
by larryk (Friar) on Apr 26, 2001 at 16:48 UTC | |
by suaveant (Parson) on Apr 26, 2001 at 17:16 UTC | |
by larryk (Friar) on Apr 27, 2001 at 15:59 UTC | |
by suaveant (Parson) on Apr 27, 2001 at 16:30 UTC |