Query: regexp::common::net::cidr
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Regexp::Common::net::CIDR(3pm) User Contributed Perl Documentation Regexp::Common::net::CIDR(3pm)NAMERegexp::Common::net::CIDR -- provide patterns for CIDR blocks.SYNOPSISuse Regexp::Common (); use Regexp::Common::net::CIDR (); while (<>) { /$RE{net}{CIDR}{IPv4}/ and print "Contains a CIDR. "; }DESCRIPTIONPatterns 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.INSTALLATIONperl Makefile.PL make make installCAVEATSAs Regexp::Common doesn't work well with extensions named "Regexp::Common::xxx::yyy" you have to load this extension yourself with "use" or "require".AUTHORRuslan U. Zakirov <ruz@bestpractical.com> perl v5.10.1 2011-01-09 Regexp::Common::net::CIDR(3pm)