$NumOfPortsToGet = 10; $c = 0; foreach $key (sort {$Stats{$a} <=> $Stats{$b}} keys %Stats) { ( $c < $NumOfPortsToGet ) or last; ($key eq "UnauthOrigin") or $Ports[$c++] = $key; }
One world, one people
In reply to Re: Sorting Hash By Large Number Values
by anonymized user 468275
in thread Sorting Hash By Large Number Values
by NathanE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |