Regexp::Common::net::CIDR3pm
Usage
use Regexp::Common ();use Regexp::Common::net::CIDR ();while (<>) {/$RE{net}{CIDR}{IPv4}/ and print "Contains a CIDR.\n";}
Overview
Patterns for CIDR blocks. Now only next IPv4 formats are supported:
xxx.xxx/xxxxx.xxx.xxx/xxxxx.xxx.xxx.xxx/xx
With {-keep} stores address in $1 and number of bits in $2.
Installation
perl Makefile.PLmakemake install
Caveats
As Regexp::Common doesn't work well with extensions named "Regexp::Common::xxx::yyy" you have to load this extension yourself with "use" or "require".
Releases
7 releases since Debian 7 (Wheezy); the text changed 2 times.