in reply to Re: Re: sorting hashes by value
in thread sorting hashes by value

There's an easier way to do it:
foreach my $key ( sort { $word_list{$b} <=> $word_list{$a} } keys %word_list ) { print $key, " ", $word_list{$key}, "\n"; }