This also handles IP+netmask strings like "123.45.67.89/255.255.255.0".use Net::IPv4Addr qw( :all ); if ($ip = ipv4_checkip($str)) { # do something }
In reply to RE: Check IP addresses for good form
by knight
in thread Check IP addresses for good form
by Ground Control
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |