You wish to sort a list of hash keys in order by the values they index. Try this:
my @ips_prioritized = sort { $ip{$a} <=> $ip{$b} } keys %ip;
Dave
In reply to Re: Sorting hash values
by davido
in thread Sorting hash values
by K_M_McMahon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |