in reply to Re: Hash sorting
in thread Hash sorting
my @data; foreach my $section (keys %hash) { foreach my $item (keys %{$hash{$section}}) { push @data, printf "%5d %7s %7s\n", $hash{$section}{$item}, $secti +on, $item; } } print sort @data;
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hash sorting
by tilly (Archbishop) on May 12, 2003 at 19:56 UTC | |
|
Re: Re: Re: Hash sorting
by Util (Priest) on May 13, 2003 at 05:09 UTC | |
by tye (Sage) on May 13, 2003 at 15:09 UTC |