Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to print the Domain=$domain, Time=$time line sorted by the ascending value of $time for the top "X" number of time values.foreach $sorter (keys %hash) { print "\n\nSORTER=$sorter"; foreach $domain (keys %{$hash{$sorter}}) { foreach $time (@{$hash{$sorter}{$domain}}) { print "\nDomain=$domain, Time=$time"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Hash of Arrays Sorting Problem
by tye (Sage) on Oct 29, 2002 at 21:16 UTC | |
|
Re: Hash of Arrays Sorting Problem
by gjb (Vicar) on Oct 29, 2002 at 20:38 UTC | |
|
Re: Hash of Arrays Sorting Problem
by kabel (Chaplain) on Oct 29, 2002 at 20:22 UTC | |
by Anonymous Monk on Oct 29, 2002 at 20:50 UTC | |
by kabel (Chaplain) on Oct 29, 2002 at 21:10 UTC |