line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MaxMind::DB::Reader; |
2
|
|
|
|
|
|
|
|
3
|
21
|
|
|
21
|
|
9702
|
use strict; |
|
21
|
|
|
|
|
30
|
|
|
21
|
|
|
|
|
581
|
|
4
|
21
|
|
|
21
|
|
78
|
use warnings; |
|
21
|
|
|
|
|
27
|
|
|
21
|
|
|
|
|
830
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.000012'; |
7
|
|
|
|
|
|
|
|
8
|
21
|
|
|
21
|
|
485
|
use 5.010000; |
|
21
|
|
|
|
|
125
|
|
9
|
|
|
|
|
|
|
|
10
|
21
|
|
|
21
|
|
85
|
use Module::Implementation; |
|
21
|
|
|
|
|
25
|
|
|
21
|
|
|
|
|
563
|
|
11
|
21
|
|
|
21
|
|
81
|
use Moo 1.003000 (); |
|
21
|
|
|
|
|
307
|
|
|
21
|
|
|
|
|
448
|
|
12
|
21
|
|
|
21
|
|
88
|
use Role::Tiny 1.003002 (); |
|
21
|
|
|
|
|
299
|
|
|
21
|
|
|
|
|
1603
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $Implementation; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
{ |
17
|
|
|
|
|
|
|
## no critic (Subroutines::ProhibitCallsToUnexportedSubs) |
18
|
|
|
|
|
|
|
my $loader = Module::Implementation::build_loader_sub( |
19
|
|
|
|
|
|
|
implementations => [ 'XS', 'PP' ], |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
$Implementation = $loader->(); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
26
|
22
|
|
|
22
|
1
|
17007
|
shift; |
27
|
22
|
|
|
|
|
597
|
return $Implementation->new(@_); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# ABSTRACT: Read MaxMind DB files and look up IP addresses |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |