in reply to Sorting a Hash of Hashes
for (sort {$a <=> $b} keys %foo) { print "$_\n"; }
Update: - to more directly answer your question, you need to change this line:
..to read like this:for my $k ( sort {%{ $ref_HoH{$a} } <=> %{ $ref_HoH{$b} } }keys %$r +ef_HoH ) {
for my $k (sort {$a <=> $b } keys %$ref_HoH) {
Cheers,
Darren :)
|
|---|