I think that should work for you.
for my $key (sort keys %hash) { print "KEY: $key \n"; for my $subkey (sort keys %{$hash{$key}} ) { print "nested key: $subkey => $hash{$key}{$subkey} \n"; } print "-------\n"; }
In reply to Re: Sorting hash of hashes
by Herkum
in thread Sorting hash of hashes
by tweak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |