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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Match a Range of IP's
by runrig (Abbot) on Sep 30, 2004 at 23:34 UTC |
In Section
Seekers of Perl Wisdom