in reply to Sorting a hash of a hash using anonymous subs
for my $mainkey ( sort keys %$hashref ) { # but then use it my $total = $hashref -> { $mainkey ) { Total }; my $value = $hashref -> { $mainkey ) { Value }; # and do whatever with those }
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting a hash of a hash using anonymous subs
by madbombX (Hermit) on Jul 27, 2006 at 18:59 UTC | |
by Moron (Curate) on Jul 28, 2006 at 09:46 UTC |