Perl Monk, Perl Meditation | |
PerlMonks |
Re: Some advice regaring sorting and hashesby targetsmart (Curate) |
on Jun 08, 2009 at 11:55 UTC ( [id://769473]=note: print w/replies, xml ) | Need Help?? |
you can use hash of arrays for that if your data is like this the inner array is [count, alpha, omega] respectively. you can use something like below if you want to sort numerically by count
Vivek -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
In Section
Seekers of Perl Wisdom
|
|