in reply to to sort hash wrt values corresponding to keys
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: to sort hash wrt values corresponding to keys
by ramprasad27 (Sexton) on Nov 02, 2011 at 06:28 UTC | |
by ansh batra (Friar) on Nov 02, 2011 at 06:36 UTC | |
|
Re^2: to sort hash wrt values corresponding to keys
by ansh batra (Friar) on Nov 02, 2011 at 06:17 UTC | |
by GrandFather (Saint) on Nov 02, 2011 at 06:27 UTC | |
by ansh batra (Friar) on Nov 02, 2011 at 06:32 UTC |