This file is indexed.

/usr/share/perl5/Regexp/Common/net/CIDR.pm is in libregexp-common-net-cidr-perl 0.02-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package Regexp::Common::net::CIDR;

use strict;
use warnings;

our $VERSION = '0.02';

use Regexp::Common qw(pattern clean no_defaults);

my $ip_unit = "(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])";

pattern name => [qw(net CIDR IPv4)],
    create => "(?k:$ip_unit\\.$ip_unit(?:\\.$ip_unit)?(?:\\.$ip_unit)?)\\/(?k:3[0-2]|[1-2]?[0-9])";

1;

__END__

=head1 NAME

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

=head1 SYNOPSIS

    use Regexp::Common ();
    use Regexp::Common::net::CIDR ();

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

=head1 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.

=head1 INSTALLATION

  perl Makefile.PL
  make
  make install

=head1 CAVEATS

As L<Regexp::Common> doesn't work well with extensions
named C<Regexp::Common::xxx::yyy> you have to load this extension
yourself with C<use> or C<require>.

=head1 AUTHOR

Ruslan U. Zakirov <ruz@bestpractical.com>

=cut