http://qs1969.pair.com?node_id=427878


in reply to Re^6: Better mousetrap (getting top N values from list X)
in thread Better mousetrap (getting top N values from list X)

Essentially. Although I think you probably meant...
for my $top ( @topN ) { ## do something with $top }


-- All code is 100% tested and functional unless otherwise noted.