perl-NetAddr-IP -- Manages IPv4 and IPv6 addresses and subnets
http://search.cpan.org/dist/NetAddr-IP/
This module provides an object-oriented abstraction on top of IP
addresses or IP subnets, that allows for easy manipulations. Version
4.xx of NetAdder::IP will will work older versions of Perl and does not
use Math::BigInt as in previous versions.