Net-Netmask module for perl
Net::Netmask parses and understands IPv4 CIDR blocks. It's built with an
object-oriented interface. Nearly all functions are methods that operate on a
There are methods that provide the nearly all bits of information about a
network block that you might want.