There's more than one way to do things | |
PerlMonks |
Re: How to find the N largest values in an array?by japhy (Canon) |
on Oct 03, 2001 at 23:04 UTC ( [id://116540]=note: print w/replies, xml ) | Need Help?? |
The simplest way is just to sort the values numerically and get the top values:
In Section
Seekers of Perl Wisdom
|
|