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


in reply to Match a Range of IP's

Regexp::Common::net looks good. See if it's valid and then check the individual octets once you parse it.