in reply to Hash sorting
my $hash = { foo => { one => 3 }, bar => { two => 6 }, baz => { three => 9 }, }; print join($/,sort { $b <=> $a } map { my $section = $_; map { sprintf("%5d %10s %s",$hash->{$section}{$_},$secti +on,$_) } keys %{$hash->{$section}} } keys %$hash ) ,$/;
- Ant
- Some of my
best work - (1 2 3)
|
|---|