in reply to Sorting hash of hashes

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!