foreach my $key (sort { ... } keys $HoH{0}) { ... }
Note that keys can be passed $HoH{0} (assuming @HoH as given in the OP), i.e., passed a hash reference, only with Perl version 5.14+.
In reply to Re: Sorting hash of hashes by values
by AnomalousMonk
in thread Sorting hash of hashes by values
by winnie_pooh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |