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 reply to Re: Match a Range of IP's
by fokat
in thread Match a Range of IP's
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |