foreach my $key (sort keys %hash) { print "KEY: $key \n"; for my $nested_key ( sort keys %{ $hash{$key} } ) { print "nested key: $nested_key \n"; } print "-------\n"; }
I think that (re-)reading perldsc would help your perl progress.
update: Who put that there? Superfluous line removed!
In reply to Re: Sorting hash of hashes
by FunkyMonk
in thread Sorting hash of hashes
by tweak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |