in reply to Re: Match only certain IP Addresses
in thread Match only certain IP Addresses

I think you meant

my $mask = inet_aton('255.255.255.0');
and
$ip = inet_aton($ip); # convert ascii to decimal

--Bob Niederman, http://bob-n.com