blib/lib/Acme/MetaSyntactic/tld.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 72.2% 13 / 18 CC 1 SCAR 2.9
CC
1
Cov
73%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Acme/MetaSyntactic/services.pm ↑ Summary blib/lib/Acme/MetaSyntactic/tmnt.pm »
1 package Acme::MetaSyntactic::tld;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use Acme::MetaSyntactic::MultiList;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 our @ISA = qw( Acme::MetaSyntactic::MultiList );
5 2 our $VERSION = '1.012';
6 2 __PACKAGE__->init();
7  
8 our %Remote = (
9 source => 'http://www.iana.org/domains/root/db/',
10 extract => sub {
11 0 ▶ ( my $type = $_[1]) =~ y/_/-/;
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 0 local $/;
13 0 my %type = $_[0] =~ m{<td>\s*<span class="domain tld"><a href="/domains/root/db/(\w+).html">.\w+</a></span></td>\s+<td>([^<]+)</td>}g;
14 0 return grep $type{$_} eq $type, keys %type;
15 },
16 2 );
17  
18 2 1;
19  
20 =head1 NAME
21  
22 Acme::MetaSyntactic::tld - The Top-Level Domain theme
23  
24 =head1 DESCRIPTION
25  
26 The list of top-level domainnames.
27  
28 The source for the list is
29 L<http://www.iana.org/domains/root/db/>.
30  
31 Note that this list contains only the ASCII top-level domains, and not the
32 internationalized ones.
33  
34 =head1 CONTRIBUTORS
35  
36 Scott Lanning, Philippe Bruhat (BooK).
37  
38 =head1 CHANGES
39  
40 =over 4
41  
42 =item *
43  
44 2021-04-30 - v1.012
45  
46 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.055.
47  
48 =item *
49  
50 2019-10-28 - v1.011
51  
52 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.054.
53  
54 =item *
55  
56 2019-07-29 - v1.010
57  
58 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.053.
59  
60 =item *
61  
62 2015-08-10 - v1.009
63  
64 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.047.
65  
66 =item *
67  
68 2015-06-08 - v1.008
69  
70 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.046.
71  
72 =item *
73  
74 2015-02-02 - v1.007
75  
76 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.045.
77  
78 =item *
79  
80 2015-01-05 - v1.006
81  
82 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.044.
83  
84 =item *
85  
86 2014-10-13 - v1.005
87  
88 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.043.
89  
90 =item *
91  
92 2014-09-15 - v1.004
93  
94 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.042.
95  
96 =item *
97  
98 2014-08-18 - v1.003
99  
100 Addition of 338 (!) generic top-level domain names
101 in Acme-MetaSyntactic-Themes version 1.041.
102  
103 =item *
104  
105 2012-08-27 - v1.002
106  
107 Addition of the C<.post> top-level domain
108 in Acme-MetaSyntactic-Themes version 1.016.
109  
110 =item *
111  
112 2012-07-31 - v1.001
113  
114 Updated the source URL, and updated the data from the source web site
115 in Acme-MetaSyntactic-Themes version 1.012 (published one day late).
116  
117 =item *
118  
119 2012-05-07 - v1.000
120  
121 Made updatable, and
122 received its own version number in Acme-MetaSyntactic-Themes version 1.000.
123  
124 =item *
125  
126 2005-01-24
127  
128 Introduced in Acme-MetaSyntactic version 0.06.
129  
130 =item *
131  
132 Idea by Scott Lanning (who suggested ISO 3166 country codes).
133  
134 =back
135  
136 =head1 SEE ALSO
137  
138 L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::List>.
139  
140 =cut
141  
142 __DATA__
« blib/lib/Acme/MetaSyntactic/services.pm ↑ Summary blib/lib/Acme/MetaSyntactic/tmnt.pm »