in reply to Sorting a hash of IP addresses?

If you want to sort on complete addresses, you could use the complete addresses as keys, and then pass a coderef to sort that 0 pads the octcets before comparing. If you wanted a by-range, i guess you could make a HoH with the keys of each portion of the IP address , so 1.2.3.4 would be $hash{1}{2}{3}{4} ... what purpose are these being sorted for ? If it is part of a bigger app, i may be able to offer a bit more. Hope that helps.
$ perl -e 'do() || ! do() ;' Undefined subroutine &main::try