line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::MetaSyntactic::wales_towns; |
2
|
1
|
|
|
1
|
|
97210
|
use strict; |
|
1
|
|
|
|
|
12
|
|
|
1
|
|
|
|
|
54
|
|
3
|
1
|
|
|
1
|
|
15
|
use Acme::MetaSyntactic::List; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
350
|
|
4
|
|
|
|
|
|
|
our @ISA = qw( Acme::MetaSyntactic::List ); |
5
|
|
|
|
|
|
|
our $VERSION = '1.012'; |
6
|
|
|
|
|
|
|
__PACKAGE__->init(); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our %Remote = ( |
9
|
|
|
|
|
|
|
source => 'http://en.wikipedia.org/wiki/List_of_towns_in_Wales', |
10
|
|
|
|
|
|
|
extract => sub { |
11
|
|
|
|
|
|
|
my $list = shift; |
12
|
|
|
|
|
|
|
$list =~ s{\A.*A}{}s; |
13
|
|
|
|
|
|
|
$list =~ s{]*>Notes.*}{}s; |
14
|
|
|
|
|
|
|
$list =~ s{]*>See also.*}{}s; |
15
|
|
|
|
|
|
|
return map { s/_+/_/g; s/^_|_$//g; $_ } |
16
|
|
|
|
|
|
|
map { Acme::MetaSyntactic::RemoteList::tr_nonword($_) } |
17
|
|
|
|
|
|
|
$list =~ m{]*>([^<]+)}g; |
18
|
|
|
|
|
|
|
}, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Acme::MetaSyntactic::wales_towns - Towns in Wales |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
List of towns in Wales. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
It would be nice to extend this to a list of all towns and villages |
32
|
|
|
|
|
|
|
in Wales, if only to be able to include |
33
|
|
|
|
|
|
|
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Source: L. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 CONTRIBUTORS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Abigail, Philippe Bruhat (BooK). |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 CHANGES |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=over 4 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item * |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
2019-07-29 - v1.012 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.053. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
2017-11-13 - v1.011 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.051. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
2017-06-12 - v1.010 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.050. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
2016-03-21 - v1.009 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.049. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
2015-10-19 - v1.008 |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.048. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item * |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
2015-02-02 - v1.007 |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.045. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item * |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
2015-01-05 - v1.006 |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.044. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
2014-04-07 - v1.005 |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.039. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item * |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
2013-12-09 - v1.004 |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.038. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
2013-10-14 - v1.003 |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.037. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item * |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
2013-07-22 - v1.002 |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.034. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=item * |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
2013-06-17 - v1.001 |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Updated from the source web site in Acme-MetaSyntactic-Themes version 1.033. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=item * |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
2012-08-27 - v1.000 |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Added a remote source for the list and updated the list |
122
|
|
|
|
|
|
|
in Acme-MetaSyntactic-Themes v1.016. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=item * |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
2005-10-25 |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Submitted by Abigail. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=back |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 SEE ALSO |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
L, L. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=cut |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
__DATA__ |