Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i want to return to the screen a results in order of frequency of the number in $array[0]. eg,1 info 1 info 1 info 2 info 3 info 3 info 4 info 4 info 4 info 4 info
so the results with the most hits are returned at the top. i am new to perl and can't think of how to do it. would i need to count along element $array[1]?? thanksoutput: 4 info 1 info 3 info 2 info
Edit kudra, 2002-06-06 Changed title, replaced literal brackets outside of code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: wisdom needed
by Abigail-II (Bishop) on Jun 06, 2002 at 09:37 UTC | |
|
Re: wisdom needed
by Anonymous Monk on Jun 06, 2002 at 10:38 UTC | |
by Juerd (Abbot) on Jun 06, 2002 at 10:43 UTC | |
by marvell (Pilgrim) on Jun 06, 2002 at 10:50 UTC | |
by Anonymous Monk on Jun 06, 2002 at 14:15 UTC | |
|
Re: wisdom needed
by marvell (Pilgrim) on Jun 06, 2002 at 09:11 UTC | |
|
Re: wisdom needed
by Zaxo (Archbishop) on Jun 06, 2002 at 09:20 UTC | |
|
Re: wisdom needed
by Joost (Canon) on Jun 06, 2002 at 09:19 UTC |