in reply to sorting hashes by value
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: sorting hashes by value
by imlou (Sexton) on Nov 08, 2002 at 21:47 UTC | |
by FamousLongAgo (Friar) on Nov 08, 2002 at 22:32 UTC |