http://www.perlmonks.org?node_id=970896


in reply to Re^2: Sorting Hash / Array
in thread Sorting Hash / Array

Accepted, but...
the string comparison is not accurate for IP addresses. Originally I was going to do a cascade comparison on each octet, but lost the will to live and suggested Net::IPAddress instead. Inline code can be messy, but I accept your argument about the hard-coded reference.