in reply to Re^2: Sorting log files with IP addresses (duplicates)
in thread Sorting log files with IP addresses (duplicates)
True, it depends on the characteristics of inet_aton(3) however using pack() and split() only works if the IP address is in the dotted quad format while inet_aton() will work with any valid IP address and return undef if the address is not valid.