for my $mainkey ( sort keys %copy ) { my $subref = $copy{ $mainkey }; my $total = $subref -> { Total }; my $value = $subref -> { Value }; # process $mainkey, $total and $value ... }
-M
Free your mind
In reply to Re^3: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |