http://www.perlmonks.org?node_id=281666


in reply to Match only certain IP Addresses

In addition to the excellent advice you have already received, if you are going to be doing much manipulation of IP addresses, you will definately want to become friends with the CPAN Module Net::IP...it is a life saver!

Replies are listed 'Best First'.
Re: Re: Match only certain IP Addresses
by DrHyde (Prior) on Aug 07, 2003 at 08:19 UTC
    And if you're going to be working with ranges of IPs, Net::CIDR. Both Net::IP and Net::CIDR are IPv6-friendly.
Re: Re: Match only certain IP Addresses
by zengargoyle (Deacon) on Aug 07, 2003 at 01:28 UTC

    and if you need really fast lookups give Net::Patricia a try. it's good at what it does.