Perl Monk, Perl Meditation | |
PerlMonks |
Re: Match a Range of IP'sby fokat (Deacon) |
on Sep 30, 2004 at 23:18 UTC ( [id://395505]=note: print w/replies, xml ) | Need Help?? |
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
|
|