line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
package Geo::CountryFlags::URLs; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
################################################################ |
5
|
|
|
|
|
|
|
# WARNING! this module is automatically generated DO NOT EDIT! # |
6
|
|
|
|
|
|
|
# see Geo::CountryFlags::Util instead # |
7
|
|
|
|
|
|
|
# # |
8
|
|
|
|
|
|
|
# creation date: Sat Sep 16 02:32:24 2006 GMT # |
9
|
|
|
|
|
|
|
################################################################ |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
9
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
61
|
|
12
|
1
|
|
|
1
|
|
6
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
104
|
|
13
|
|
|
|
|
|
|
$VERSION = '2006258.001'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $URLs = { |
16
|
|
|
|
|
|
|
'CIA' => q|https://www.cia.gov/cia/publications/factbook/docs/flagsoftheworld.html|, |
17
|
|
|
|
|
|
|
'CIAFLAGS' => q|https://www.cia.gov/cia/publications/factbook/flags/|, |
18
|
|
|
|
|
|
|
'ISO' => q|http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1-semic.txt|, |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub AUTOLOAD { |
22
|
1
|
|
|
1
|
|
6
|
no strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
388
|
|
23
|
1
|
|
|
1
|
|
9
|
$AUTOLOAD =~ /[^:]+$/; |
24
|
1
|
|
|
|
|
4
|
value($&); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new { |
28
|
1
|
|
|
1
|
1
|
2
|
my $proto = shift; |
29
|
1
|
|
50
|
|
|
10
|
my $class = ref $proto || $proto || __PACKAGE__; |
30
|
1
|
|
|
|
|
3
|
my $self = {}; |
31
|
1
|
|
|
|
|
7
|
bless $self, $class; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub hashptr { |
35
|
0
|
|
|
0
|
1
|
0
|
my($proto,$class) = @_; |
36
|
0
|
0
|
|
|
|
0
|
$proto = $class if $class; |
37
|
0
|
|
0
|
|
|
0
|
$class = ref $proto || $proto; |
38
|
0
|
|
|
|
|
0
|
my $rv = {}; |
39
|
0
|
|
|
|
|
0
|
%$rv = %$URLs; |
40
|
0
|
|
|
|
|
0
|
bless $rv, $class; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub value { |
44
|
1
|
50
|
|
1
|
1
|
14
|
return (exists $URLs->{$_[0]}) ? $URLs->{$_[0]} : undef; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub subref { |
48
|
0
|
|
|
0
|
1
|
|
return \&value; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
__END__ |