in reply to Sorting hash values
You can sort the keys by value in the hash:
By comparing $b terms on the left, we get descending order.my @ips = sort { $ip{$b} <=> $ip{$a} } keys %ip; my @usrs = sort {$usr{$b} <=> $usr{$a}} keys %usr;
After Compline,
Zaxo
|
|---|