in reply to Match a Range of IP's
Hi there:
This is a task for NetAddr::IP...
perl -MNetAddr::IP -ne 'print "$_ match\n" if NetAddr::IP->new("192.168.1/24")->contains(NetAddr::IP->new($_))'Best regards
-lem, but some call me fokat
In Section
Seekers of Perl Wisdom