SIMPLE SOLUTIONS

REGEXP::COMMON::NET::CIDR(3PM) - Linux man page online | Library functions

Chapter
2007-03-26
Regexp::Common::net::CIDR(3pm) User Contributed Perl Documentation Regexp::Common::net::CIDR(3pm)

NAME

Regexp::Common::net::CIDR -- provide patterns for CIDR blocks.

SYNOPSIS

use Regexp::Common (); use Regexp::Common::net::CIDR (); while (<>) { /$RE{net}{CIDR}{IPv4}/ and print "Contains a CIDR.\n"; }

DESCRIPTION

Patterns for CIDR blocks. Now only next IPv4 formats are supported: xxx.xxx/xx xxx.xxx.xxx/xx xxx.xxx.xxx.xxx/xx With {-keep} stores address in $1 and number of bits in $2.

INSTALLATION

perl Makefile.PL make make 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".

AUTHOR

Ruslan U. Zakirov <@bestpractical.com>
perl v5.10.1 2007-03-26 Regexp::Common::net::CIDR(3pm)
Download raw manual
Main page User Contributed Perl Documentation (+23303) perl v5.10.1 (+292) № 3 (+68044)
Go top