in reply to Sorting Hash By Large Number Values
$NumOfPortsToGet = 10; $c = 0; foreach $key (sort {$Stats{$a} <=> $Stats{$b}} keys %Stats) { ( $c < $NumOfPortsToGet ) or last; ($key eq "UnauthOrigin") or $Ports[$c++] = $key; } [download]
One world, one people