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.013';
6 2 __PACKAGE__->init();
7  
8 our %Remote = (
9 source => 'http://www.iana.org/domains/root/db/',
10 0 ▶ extract => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 ( my $type = $_[1]) =~ y/_/-/;
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 2026-01-12 - v1.013
45  
46 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.056.
47  
48 =item *
49  
50 2021-04-30 - v1.012
51  
52 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.055.
53  
54 =item *
55  
56 2019-10-28 - v1.011
57  
58 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.054.
59  
60 =item *
61  
62 2019-07-29 - v1.010
63  
64 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.053.
65  
66 =item *
67  
68 2015-08-10 - v1.009
69  
70 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.047.
71  
72 =item *
73  
74 2015-06-08 - v1.008
75  
76 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.046.
77  
78 =item *
79  
80 2015-02-02 - v1.007
81  
82 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.045.
83  
84 =item *
85  
86 2015-01-05 - v1.006
87  
88 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.044.
89  
90 =item *
91  
92 2014-10-13 - v1.005
93  
94 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.043.
95  
96 =item *
97  
98 2014-09-15 - v1.004
99  
100 Updated from the source web site in Acme-MetaSyntactic-Themes version 1.042.
101  
102 =item *
103  
104 2014-08-18 - v1.003
105  
106 Addition of 338 (!) generic top-level domain names
107 in Acme-MetaSyntactic-Themes version 1.041.
108  
109 =item *
110  
111 2012-08-27 - v1.002
112  
113 Addition of the C<.post> top-level domain
114 in Acme-MetaSyntactic-Themes version 1.016.
115  
116 =item *
117  
118 2012-07-31 - v1.001
119  
120 Updated the source URL, and updated the data from the source web site
121 in Acme-MetaSyntactic-Themes version 1.012 (published one day late).
122  
123 =item *
124  
125 2012-05-07 - v1.000
126  
127 Made updatable, and
128 received its own version number in Acme-MetaSyntactic-Themes version 1.000.
129  
130 =item *
131  
132 2005-01-24
133  
134 Introduced in Acme-MetaSyntactic version 0.06.
135  
136 =item *
137  
138 Idea by Scott Lanning (who suggested ISO 3166 country codes).
139  
140 =back
141  
142 =head1 SEE ALSO
143  
144 L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::List>.
145  
146 =cut
147  
148 __DATA__
« blib/lib/Acme/MetaSyntactic/services.pm ↑ Summary blib/lib/Acme/MetaSyntactic/tmnt.pm »