line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Gazetteer; |
2
|
1
|
|
|
1
|
|
32209
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
41
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
991
|
use Module::Pluggable search_path => ['WWW::Gazetteer'], require => 1; |
|
1
|
|
|
|
|
12686
|
|
|
1
|
|
|
|
|
9
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
107
|
use vars qw($VERSION @ISA); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
184
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.24'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
1
|
|
|
1
|
1
|
89
|
my ( $package, $type, @params ) = @_; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
4
|
my $self = bless {}, $package; |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
3
|
my $class; |
15
|
1
|
|
|
|
|
9
|
foreach my $plugin ( $self->plugins ) { |
16
|
0
|
0
|
|
|
|
0
|
if ( $plugin =~ /$type/i ) { |
17
|
0
|
|
|
|
|
0
|
$class = $plugin; |
18
|
0
|
|
|
|
|
0
|
last; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
1
|
50
|
|
|
|
510
|
die "No WWW::Gazetteer plugin for $type found" unless $class; |
23
|
0
|
|
|
|
|
|
return $class->new(@params); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |