Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Re: finding highest numberby petral (Curate) |
on Dec 05, 2002 at 17:11 UTC ( [id://217823]=note: print w/replies, xml ) | Need Help?? |
    how could you adapt it to calculate second and third highest numbers? something like: (untested)   (and, as said, of course the sort method would be better, at least for small arrays, and would be even more better for finding the top three values:  (sort ..., @array)[-3..-1] )   p
In Section
Seekers of Perl Wisdom
|
|