Very fast matches large lists of IP addresses against many CIDR subnets and calculates IP address ranges. WWW: http://search.cpan.org/dist/Net-Subnets/