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.
I know. I didn't say anything because A) your suggestion to use Net::IPAddress was better than what I was going to suggest:
and B) I was heading out the door. :-)unpack "N", pack "C*", split /\./, $ip_address;
In reply to Re^4: Sorting Hash / Array
by sauoq
in thread Sorting Hash / Array
by nickt9999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |