in reply to Reg Ex to find IP address in range
from the docs:
The module also has many other functions for defining and scanning subnets.use NetAddr::IP; my $ip = new NetAddr::IP 'loopback'; if ($ip->within(new NetAddr::IP "127.0.0.0", "255.0.0.0")) { print "Is a loopback address\n"; }
|
|---|