use Socket; @sortedKeys = map { inet_ntoa($_) } sort map { inet_aton($_) } keys %hash; [download]
In reply to Re: Sorting a hash of IP addresses? by gbarr in thread Sorting a hash of IP addresses? by mnperez