README
1NAME
2 Regexp::Common::net::CIDR -- provide patterns for CDIR blocks.
3
4SYNOPSIS
5 use Regexp::Common ();
6 use Regexp::Common::net::CIDR ();
7
8 while (<>) {
9 /$RE{net}{CIDR}{IPv4}/ and print "Contains a CIDR.\n";
10 }
11
12DESCRIPTION
13 Patterns for CIDR blocks. Now only next IPv4 formats are supported:
14
15 xxx.xxx/xx
16 xxx.xxx.xxx/xx
17 xxx.xxx.xxx.xxx/xx
18
19 With {-keep} stores address in $1 and number of bits in $2.
20
21INSTALLATION
22 perl Makefile.PL
23 make
24 make install
25
26CAVEATS
27 As Regexp::Common doesn't work well with extensions named
28 "Regexp::Common::xxx::yyy" you have to load this extension yourself with
29 "use" or "require".
30
31AUTHOR
32 Ruslan U. Zakirov <ruz@bestpractical.com>
33
34