in reply to Re: Re: Re: re: readibility
in thread sorting hash of hashes

> are you trying to sort all of the lines into a big mix of lines?
Yes.

> $log.$line or something...
this is almost exactly what my fix was ($log.'|'.$line).

It's the "more work" that I'm interested in. I figure there has to be a way to sort a multidimensional hash at the top level by a middle/bottom level key/value (without populating another hash with all the keys to that level joined as the new key).

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: re: readibility
by suaveant (Parson) on Apr 26, 2001 at 17:16 UTC
    Well... that's just the thing... you can sort a hash by values below it, the problem is that you are still only sorting one level of keys... which doesn't help, you need to sort and return two keys... so what you actually have to do is write code that goes through and generates a list of key pairs in the proper order... it's not a sort so much as generating an array that stores the keys properly.
                    - Ant
      I feared as much - thanks for your help.

      Larry

        no problem...
                        - Ant