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