You're near, but if you want to get keys out, you need to put keys in:
@keys = sort { $word_list{$a} <=> $word_list{$b} } keys %word_list;
After Compline,
Zaxo
In reply to Re: sorting hashes by value
by Zaxo
in thread sorting hashes by value
by imlou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |