File: README

package info (click to toggle)
libregexp-common-net-cidr-perl 0.03-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 2,063; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
NAME
    Regexp::Common::net::CIDR -- provide patterns for CDIR 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 <ruz@bestpractical.com>