Don't ask to ask, just ask | |
PerlMonks |
Re: to sort hash wrt values corresponding to keysby mwp (Hermit) |
on Nov 02, 2011 at 06:11 UTC ( [id://935305]=note: print w/replies, xml ) | Need Help?? |
It sounds like you want a hash of lists. Check out perldsc. When you write your sort function you can tell it to use an element of the child structure. I hope I'm not doing your homework for you, but because I'm bored, beneath the spoiler is an attempt at the solution to the problem as I understand it. HTH. <Reveal this spoiler or all in this thread>
mwp
In Section
Seekers of Perl Wisdom
|
|