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
In reply to Re: Sorting a hash of a hash using anonymous subs
by Moron
in thread Sorting a hash of a hash using anonymous subs
by madbombX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |