blib/lib/Number/Phone/StubCountry/IM.pm

filter: Statementstmt 100% 27 / 27 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 37 / 37 CC 3 SCAR 6.2
CC
3
Cov
100%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/Number/Phone/StubCountry/GG.pm ↑ Summary blib/lib/Number/Phone/StubCountry/JE.pm »
1 # automatically generated file, don't edit
2  
3  
4  
5 # Copyright 2026 David Cantrell, derived from data from libphonenumber
6 # http://code.google.com/p/libphonenumber/
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 package Number::Phone::StubCountry::IM;
20 8 ▶use base qw(Number::Phone::StubCountry);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 8 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 8 our $VERSION = 1.20260904101550;
26  
27 8 my $formatters = [
28 {
29 'format' => '$1 $2',
30 'leading_digits' => '8001111',
31 'national_rule' => '0$1',
32 'pattern' => '(\\d{3})(\\d{4})'
33 },
34 {
35 'format' => '$1 $2 $3',
36 'leading_digits' => '845464',
37 'national_rule' => '0$1',
38 'pattern' => '(\\d{3})(\\d{2})(\\d{2})'
39 },
40 {
41 'format' => '$1 $2',
42 'leading_digits' => '800',
43 'national_rule' => '0$1',
44 'pattern' => '(\\d{3})(\\d{6})'
45 },
46 {
47 'format' => '$1 $2',
48 'leading_digits' => '
49 1(?:
50 3873|
51 5(?:
52 242|
53 39[4-6]
54 )|
55 (?:
56 697|
57 768
58 )[347]|
59 9467
60 )
61 ',
62 'national_rule' => '0$1',
63 'pattern' => '(\\d{5})(\\d{4,5})'
64 },
65 {
66 'format' => '$1 $2',
67 'leading_digits' => '
68 1(?:
69 [2-69][02-9]|
70 [78]
71 )
72 ',
73 'national_rule' => '0$1',
74 'pattern' => '(\\d{4})(\\d{5,6})'
75 },
76 {
77 'format' => '$1 $2 $3',
78 'leading_digits' => '
79 [25]|
80 7(?:
81 0|
82 6(?:
83 [03-9]|
84 2[356]
85 )
86 )
87 ',
88 'national_rule' => '0$1',
89 'pattern' => '(\\d{2})(\\d{4})(\\d{4})'
90 },
91 {
92 'format' => '$1 $2',
93 'leading_digits' => '7',
94 'national_rule' => '0$1',
95 'pattern' => '(\\d{4})(\\d{6})'
96 },
97 {
98 'format' => '$1 $2 $3',
99 'leading_digits' => '[1389]',
100 'national_rule' => '0$1',
101 'pattern' => '(\\d{3})(\\d{3})(\\d{4})'
102 }
103 ];
104  
105 8 my $validators = {
106 'fixed_line' => '
107 1624(?:
108 230|
109 [5-8]\\d\\d
110 )\\d{3}
111 ',
112 'geographic' => '
113 1624(?:
114 230|
115 [5-8]\\d\\d
116 )\\d{3}
117 ',
118 'mobile' => '
119 76245[06]\\d{4}|
120 7(?:
121 4576|
122 [59]24\\d|
123 624[0-4689]
124 )\\d{5}
125 ',
126 'pager' => '',
127 'personal_number' => '70\\d{8}',
128 'specialrate' => '(
129 8(?:
130 440[49]06|
131 72299\\d
132 )\\d{3}|
133 (?:
134 8(?:
135 45|
136 70
137 )|
138 90[0167]
139 )624\\d{4}
140 )|(
141 3440[49]06\\d{3}|
142 (?:
143 3(?:
144 08162|
145 3\\d{4}|
146 45624|
147 7(?:
148 0624|
149 2299
150 )
151 )|
152 55\\d{4}
153 )\\d{4}
154 )',
155 'toll_free' => '808162\\d{4}',
156 'voip' => '56\\d{8}'
157 };
158 8 my %areanames = ();
159 8 $areanames{en} = {"441937", "Wetherby",
160 "441899", "Biggar",
161 "442870", "Coleraine",
162 "441480", "Huntingdon",
163 "441227", "Canterbury",
164 "441669", "Rothbury",
165 "441947", "Whitby",
166 "4419640", "Hornsea\/Patrington",
167 "441751", "Pickering",
168 "441665", "Alnwick",
169 "441274", "Bradford",
170 "441488", "Hungerford",
171 "441895", "Uxbridge",
172 "441987", "Ebbsfleet",
173 "441140", "Sheffield",
174 "441553", "Kings\ Lynn",
175 "441364", "Ashburton",
176 "441440", "Haverhill",
177 "4418519", "Great\ Bernera",
178 "4419646", "Patrington",
179 "441808", "Tomatin",
180 "441422", "Halifax",
181 "441463", "Inverness",
182 "441438", "Stevenage",
183 "441494", "High\ Wycombe",
184 "4418901", "Coldstream\/Ayton",
185 "441467", "Inverurie",
186 "441858", "Market\ Harborough",
187 "441372", "Esher",
188 "442311", "Southampton",
189 "4414340", "Bellingham\/Haltwhistle\/Hexham",
190 "4418512", "Stornoway",
191 "441366", "Downham\ Market",
192 "441471", "Isle\ of\ Skye\ \-\ Broadford",
193 "441503", "Looe",
194 "442881", "Newtownstewart",
195 "441557", "Kirkcudbright",
196 "441496", "Port\ Ellen",
197 "441983", "Isle\ of\ Wight",
198 "441397", "Fort\ William",
199 "441919", "Durham",
200 "441223", "Cambridge",
201 "4414346", "Hexham",
202 "441915", "Sunderland",
203 "441933", "Wellingborough",
204 "441262", "Bridlington",
205 "442841", "Rostrevor",
206 "441291", "Chepstow",
207 "441968", "Penicuik",
208 "4420", "London",
209 "441276", "Camberley",
210 "441943", "Guiseley",
211 "441747", "Shaftesbury",
212 "441429", "Hartlepool",
213 "441951", "Colonsay",
214 "441737", "Redhill",
215 "4415395", "Grange\-over\-Sands",
216 "4413392", "Aboyne",
217 "4414373", "Clynderwen\ \(Clunderwen\)",
218 "4416869", "Newtown",
219 "44114708", "Sheffield",
220 "441425", "Ringwood",
221 "4418479", "Tongue",
222 "441570", "Lampeter",
223 "441787", "Sudbury",
224 "441877", "Callander",
225 "441691", "Oswestry",
226 "4418907", "Ayton",
227 "441676", "Meriden",
228 "441892", "Tunbridge\ Wells",
229 "441824", "Ruthin",
230 "441623", "Mansfield",
231 "441578", "Lauder",
232 "44114709", "Sheffield",
233 "4419750", "Alford\ \(Aberdeen\)\/Strathdon",
234 "441269", "Ammanford",
235 "4418472", "Thurso",
236 "441531", "Ledbury",
237 "441912", "Tyneside",
238 "441873", "Abergavenny",
239 "441674", "Montrose",
240 "4413885", "Stanhope\ \(Eastgate\)",
241 "441760", "Swaffham",
242 "441375", "Grays\ Thurrock",
243 "441768", "Penrith",
244 "441379", "Diss",
245 "4413399", "Ballater",
246 "4416862", "Llanidloes",
247 "441581", "New\ Luce",
248 "441743", "Shrewsbury",
249 "4414378", "Haverfordwest",
250 "4414374", "Clynderwen\ \(Clunderwen\)",
251 "4419756", "Strathdon",
252 "441733", "Peterborough",
253 "441698", "Motherwell",
254 "441356", "Brechin",
255 "441634", "Medway",
256 "4412290", "Barrow\-in\-Furness\/Millom",
257 "441833", "Barnard\ Castle",
258 "441389", "Dumbarton",
259 "441644", "New\ Galloway",
260 "441457", "Glossop",
261 "441843", "Thanet",
262 "441571", "Lochinver",
263 "441403", "Horsham",
264 "441690", "Betws\-y\-Coed",
265 "441304", "Dover",
266 "441567", "Killin",
267 "441349", "Dingwall",
268 "441773", "Ripley",
269 "441684", "Malvern",
270 "441883", "Caterham",
271 "44114704", "Sheffield",
272 "441726", "St\ Austell",
273 "4413881", "Bishop\ Auckland\/Stanhope\ \(Eastgate\)",
274 "441950", "Sandwick",
275 "441609", "Northallerton",
276 "441335", "Ashbourne",
277 "44241", "Coventry",
278 "4412296", "Barrow\-in\-Furness",
279 "441252", "Aldershot",
280 "441908", "Milton\ Keynes",
281 "441724", "Scunthorpe",
282 "441761", "Temple\ Cloud",
283 "441659", "Sanquhar",
284 "441588", "Bishops\ Castle",
285 "441792", "Swansea",
286 "441202", "Bournemouth",
287 "441887", "Aberfeldy",
288 "441777", "Retford",
289 "441900", "Workington",
290 "441580", "Cranbrook",
291 "441655", "Maybole",
292 "441594", "Lydney",
293 "442825", "Ballymena",
294 "441538", "Ipstones",
295 "441646", "Milford\ Haven",
296 "441563", "Kilmarnock",
297 "441354", "Chatteris",
298 "441995", "Garstang",
299 "441548", "Kingsbridge",
300 "441636", "Newark\-on\-Trent",
301 "441522", "Lincoln",
302 "441837", "Okehampton",
303 "441540", "Kingussie",
304 "441306", "Dorking",
305 "441407", "Holyhead",
306 "441453", "Dursley",
307 "441530", "Coalville",
308 "442829", "Kilrea",
309 "441286", "Caernarfon",
310 "441141", "Sheffield",
311 "441431", "Helmsdale",
312 "441320", "Fort\ Augustus",
313 "441259", "Alloa",
314 "441255", "Clacton\-on\-Sea",
315 "441342", "East\ Grinstead",
316 "441328", "Fakenham",
317 "4414302", "North\ Cave",
318 "4415072", "Spilsby\ \(Horncastle\)",
319 "441332", "Derby",
320 "441926", "Warwick",
321 "441236", "Coatbridge",
322 "441750", "Selkirk",
323 "441481", "Guernsey",
324 "442871", "Londonderry",
325 "442896", "Belfast",
326 "441246", "Chesterfield",
327 "4416973", "Wigton",
328 "442867", "Lisnaskea",
329 "441758", "Pwllheli",
330 "4419467", "Gosforth",
331 "441382", "Dundee",
332 "4416974", "Raughton\ Head",
333 "441525", "Leighton\ Buzzard",
334 "442838", "Portadown",
335 "441992", "Lea\ Valley",
336 "441244", "Chester",
337 "442894", "Antrim",
338 "441924", "Wakefield",
339 "441708", "Romford",
340 "442848", "Northern\ Ireland",
341 "441298", "Buxton",
342 "442822", "Northern\ Ireland",
343 "441234", "Bedford",
344 "4414236", "Harrogate",
345 "441290", "Cumnock",
346 "442840", "Banbridge",
347 "44292", "Cardiff",
348 "441700", "Rothesay",
349 "442830", "Newry",
350 "441529", "Sleaford",
351 "441977", "Pontefract",
352 "441205", "Boston",
353 "442888", "Northern\ Ireland",
354 "441478", "Isle\ of\ Skye\ \-\ Portree",
355 "441795", "Sittingbourne",
356 "441284", "Bury\ St\ Edmunds",
357 "442310", "Portsmouth",
358 "441652", "Brigg",
359 "4414230", "Harrogate\/Boroughbridge",
360 "4418905", "Ayton",
361 "442880", "Carrickmore",
362 "441799", "Saffron\ Walden",
363 "441470", "Isle\ of\ Skye\ \-\ Edinbane",
364 "441209", "Redruth",
365 "4414309", "Market\ Weighton",
366 "4415079", "Alford\ \(Lincs\)",
367 "441452", "Gloucester",
368 "4412292", "Barrow\-in\-Furness",
369 "441670", "Morpeth",
370 "44114700", "Sheffield",
371 "441562", "Kidderminster",
372 "441678", "Bala",
373 "441576", "Lockerbie",
374 "4415394", "Hawkshead",
375 "441591", "Llanwrtyd\ Wells",
376 "44116", "Leicester",
377 "441793", "Swindon",
378 "441257", "Coppull",
379 "441721", "Peebles",
380 "441764", "Crieff",
381 "441207", "Consett",
382 "441253", "Blackpool",
383 "441797", "Rye",
384 "441766", "Porthmadog",
385 "441681", "Isle\ of\ Mull\ \-\ Fionnphort",
386 "441772", "Preston",
387 "441882", "Kinloch\ Rannoch",
388 "441527", "Redditch",
389 "441301", "Arrochar",
390 "4412299", "Millom",
391 "44114701", "Sheffield",
392 "4414375", "Clynderwen\ \(Clunderwen\)",
393 "441641", "Strathy",
394 "441842", "Thetford",
395 "441828", "Coupar\ Angus",
396 "441631", "Oban",
397 "441832", "Clopton",
398 "441653", "Malton",
399 "441854", "Ullapool",
400 "4414239", "Boroughbridge",
401 "441337", "Ladybank",
402 "441446", "Barry",
403 "441806", "Shetland",
404 "4414300", "North\ Cave\/Market\ Weighton",
405 "441347", "Easingwold",
406 "441146", "Sheffield",
407 "4415070", "Louth\/Alford\ \(Lincs\)\/Spilsby\ \(Horncastle\)",
408 "441436", "Helensburgh",
409 "4415076", "Louth",
410 "441569", "Stonehaven",
411 "4414306", "Market\ Weighton",
412 "441455", "Hinckley",
413 "441387", "Dumfries",
414 "442823", "Northern\ Ireland",
415 "442891", "Bangor\ \(Co\.\ Down\)",
416 "441241", "Arbroath",
417 "441993", "Witney",
418 "441565", "Knutsford",
419 "441270", "Crewe",
420 "441409", "Holsworthy",
421 "442827", "Ballymoney",
422 "441383", "Dunfermline",
423 "441997", "Strathpeffer",
424 "441835", "St\ Boswells",
425 "441972", "Glenborrodale",
426 "441484", "Huddersfield",
427 "441845", "Thirsk",
428 "441405", "Goole",
429 "441278", "Bridgwater",
430 "441856", "Orkney",
431 "441333", "Peat\ Inn\ \(Leven\ \(Fife\)\)",
432 "44280", "Northern\ Ireland",
433 "441368", "Dunbar",
434 "441490", "Corwen",
435 "441779", "Peterhead",
436 "441889", "Rugeley",
437 "441343", "Elgin",
438 "441885", "Pencombe",
439 "4414232", "Harrogate",
440 "441360", "Killearn",
441 "441775", "Spalding",
442 "441144", "Sheffield",
443 "441603", "Norwich",
444 "441444", "Haywards\ Heath",
445 "441294", "Ardrossan",
446 "442844", "Downpatrick",
447 "441928", "Runcorn",
448 "441704", "Southport",
449 "441942", "Wigan",
450 "441785", "Stafford",
451 "441248", "Bangor\ \(Gwynedd\)",
452 "442898", "Belfast",
453 "441875", "Tranent",
454 "4419642", "Hornsea",
455 "4418903", "Coldstream",
456 "441932", "Weybridge",
457 "441263", "Cromer",
458 "441879", "Scarinish",
459 "442890", "Belfast",
460 "441789", "Stratford\-upon\-Avon",
461 "441756", "Skipton",
462 "441920", "Ware",
463 "441745", "Rhyl",
464 "441288", "Bude",
465 "44131", "Edinburgh",
466 "441502", "Lowestoft",
467 "4414377", "Haverfordwest",
468 "442884", "Northern\ Ireland",
469 "441474", "Gravesend",
470 "4414349", "Bellingham",
471 "441982", "Builth\ Wells",
472 "441326", "Falmouth",
473 "44247", "Coventry",
474 "441749", "Shepton\ Mallet",
475 "441280", "Buckingham",
476 "441373", "Frome",
477 "441427", "Gainsborough",
478 "441491", "Henley\-on\-Thames",
479 "441476", "Grantham",
480 "442886", "Cookstown",
481 "441377", "Driffield",
482 "4414342", "Bellingham",
483 "4418510", "Great\ Bernera\/Stornoway",
484 "441462", "Hitchin",
485 "441392", "Exeter",
486 "441324", "Falkirk",
487 "441361", "Duns",
488 "4418904", "Coldstream",
489 "44115", "Nottingham",
490 "4418908", "Coldstream",
491 "441271", "Barnstaple",
492 "441706", "Rochdale",
493 "441625", "Macclesfield",
494 "442846", "Northern\ Ireland",
495 "441296", "Aylesbury",
496 "4419649", "Hornsea",
497 "4418516", "Great\ Bernera",
498 "441754", "Skegness",
499 "441629", "Matlock",
500 "441267", "Carmarthen",
501 "441985", "Warminster",
502 "441505", "Johnstone",
503 "441732", "Sevenoaks",
504 "441584", "Ludlow",
505 "441904", "York",
506 "441728", "Saxmundham",
507 "4413390", "Aboyne\/Ballater",
508 "441720", "Isles\ of\ Scilly",
509 "441989", "Ross\-on\-Wye",
510 "441509", "Loughborough",
511 "441935", "Yeovil",
512 "441913", "Durham",
513 "441544", "Kington",
514 "4419759", "Alford\ \(Aberdeen\)",
515 "441671", "Newton\ Stewart",
516 "441872", "Truro",
517 "441358", "Ellon",
518 "441225", "Bath",
519 "441782", "Stoke\-on\-Trent",
520 "4414371", "Haverfordwest\/Clynderwen\ \(Clunderwen\)",
521 "441945", "Wisbech",
522 "441534", "Jersey",
523 "441866", "Kilchrenan",
524 "441598", "Lynton",
525 "4413396", "Ballater",
526 "441667", "Nairn",
527 "441949", "Whatton",
528 "441590", "Lymington",
529 "441939", "Wem",
530 "441350", "Dunkeld",
531 "4419752", "Alford\ \(Aberdeen\)",
532 "441536", "Kettering",
533 "4418470", "Thurso\/Tongue",
534 "441622", "Maidstone",
535 "441663", "New\ Mills",
536 "441821", "Kinrossie",
537 "441864", "Abington\ \(Crawford\)",
538 "4416866", "Newtown",
539 "441300", "Cerne\ Abbas",
540 "441638", "Newmarket",
541 "441546", "Lochgilphead",
542 "441694", "Church\ Stretton",
543 "441308", "Bridport",
544 "441630", "Market\ Drayton",
545 "441917", "Sunderland",
546 "44286", "Northern\ Ireland",
547 "441465", "Girvan",
548 "441586", "Campbeltown",
549 "441559", "Llandysul",
550 "441688", "Isle\ of\ Mull\ \-\ Tobermory",
551 "441680", "Isle\ of\ Mull\ \-\ Craignure",
552 "441555", "Lanark",
553 "4416860", "Newtown\/Llanidloes",
554 "441469", "Killingholme",
555 "441954", "Madingley",
556 "441395", "Budleigh\ Salterton",
557 "4418476", "Tongue",
558 "441938", "Welshpool",
559 "441994", "St\ Clears",
560 "441355", "East\ Kilbride",
561 "442892", "Lisburn",
562 "441242", "Cheltenham",
563 "441228", "Carlisle",
564 "441948", "Whitchurch",
565 "441922", "Walsall",
566 "442824", "Northern\ Ireland",
567 "4413880", "Bishop\ Auckland\/Stanhope\ \(Eastgate\)",
568 "441595", "Lerwick\,\ Foula\ \&\ Fair\ Isle",
569 "441963", "Wincanton",
570 "441386", "Evesham",
571 "441599", "Kyle",
572 "441487", "Warboys",
573 "442877", "Limavady",
574 "441359", "Pakenham",
575 "441988", "Wigtown",
576 "4412291", "Barrow\-in\-Furness\/Millom",
577 "441508", "Brooke",
578 "4419755", "Alford\ \(Aberdeen\)",
579 "441282", "Burnley",
580 "441725", "Rockbourne",
581 "441606", "Northwich",
582 "4417684", "Pooley\ Bridge",
583 "441654", "Machynlleth",
584 "441807", "Ballindalloch",
585 "441729", "Settle",
586 "441980", "Amesbury",
587 "441346", "Fraserburgh",
588 "441857", "Sanday",
589 "441604", "Northampton",
590 "441443", "Pontypridd",
591 "441803", "Torquay",
592 "441550", "Llandovery",
593 "441685", "Merthyr\ Tydfil",
594 "441143", "Sheffield",
595 "441433", "Hathersage",
596 "441689", "Orpington",
597 "441558", "Llandeilo",
598 "441344", "Bracknell",
599 "441398", "Dulverton",
600 "441656", "Bridgend",
601 "4415396", "Sedbergh",
602 "441460", "Chard",
603 "4414237", "Harrogate",
604 "4417683", "Appleby",
605 "441334", "St\ Andrews",
606 "442826", "Northern\ Ireland",
607 "44238", "Southampton",
608 "441971", "Scourie",
609 "441309", "Forres",
610 "441635", "Newbury",
611 "441483", "Guildford",
612 "441639", "Neath",
613 "44281", "Northern\ Ireland",
614 "441305", "Dorchester",
615 "441967", "Strontian",
616 "441384", "Dudley",
617 "441722", "Salisbury",
618 "441285", "Cirencester",
619 "441748", "Richmond",
620 "441763", "Royston",
621 "441738", "Perth",
622 "4415073", "Louth",
623 "441794", "Romsey",
624 "441204", "Bolton",
625 "4414303", "North\ Cave",
626 "441256", "Basingstoke",
627 "441730", "Petersfield",
628 "441740", "Sedgefield",
629 "441289", "Berwick\-upon\-Tweed",
630 "441235", "Abingdon",
631 "441592", "Kirkcaldy",
632 "4414345", "Haltwhistle",
633 "441925", "Warrington",
634 "441245", "Chelmsford",
635 "442895", "Belfast",
636 "441788", "Rugby",
637 "441352", "Mold",
638 "441878", "Lochboisdale",
639 "441561", "Laurencekirk",
640 "441524", "Lancaster",
641 "4412297", "Millom",
642 "441870", "Isle\ of\ Benbecula",
643 "441780", "Stamford",
644 "442899", "Northern\ Ireland",
645 "441249", "Chippenham",
646 "441239", "Cardigan",
647 "441929", "Wareham",
648 "441577", "Kinross",
649 "441451", "Stow\-on\-the\-Wold",
650 "441526", "Martin",
651 "441841", "Newquay\ \(Padstow\)",
652 "441573", "Kelso",
653 "441628", "Maidenhead",
654 "441642", "Middlesbrough",
655 "44151", "Liverpool",
656 "441620", "North\ Berwick",
657 "4414231", "Harrogate\/Boroughbridge",
658 "441302", "Doncaster",
659 "441771", "Maud",
660 "4414304", "North\ Cave",
661 "4414308", "Market\ Weighton",
662 "4419645", "Hornsea",
663 "441206", "Colchester",
664 "4415074", "Alford\ \(Lincs\)",
665 "4415078", "Alford\ \(Lincs\)",
666 "441796", "Pitlochry",
667 "441767", "Sandy",
668 "441254", "Blackburn",
669 "44291", "Cardiff",
670 "441697", "Brampton",
671 "441560", "Moscow",
672 "441458", "Glastonbury",
673 "4415242", "Hornby",
674 "441666", "Malmesbury",
675 "441450", "Hawick",
676 "441871", "Castlebay",
677 "441543", "Cannock",
678 "441914", "Tyneside",
679 "4418900", "Coldstream\/Ayton",
680 "4414235", "Harrogate",
681 "441568", "Leominster",
682 "441896", "Galashiels",
683 "441672", "Marlborough",
684 "4418906", "Ayton",
685 "4419641", "Hornsea\/Patrington",
686 "441583", "Carradale",
687 "441957", "Mid\ Yell",
688 "4418518", "Stornoway",
689 "441903", "Worthing",
690 "4418514", "Great\ Bernera",
691 "441953", "Wymondham",
692 "441499", "Inveraray",
693 "441770", "Isle\ of\ Arran",
694 "441880", "Tarbert",
695 "441888", "Turriff",
696 "441369", "Dunoon",
697 "441778", "Bourne",
698 "441495", "Pontypool",
699 "44114702", "Sheffield",
700 "4418513", "Stornoway",
701 "441279", "Bishops\ Stortford",
702 "441400", "Honington",
703 "441840", "Camelford",
704 "4414341", "Bellingham\/Haltwhistle\/Hexham",
705 "4419757", "Strathdon",
706 "441830", "Kirkwhelpington",
707 "441547", "Knighton",
708 "441838", "Dalmally",
709 "441916", "Tyneside",
710 "441822", "Tavistock",
711 "441408", "Golspie",
712 "441848", "Thornhill",
713 "441275", "Clevedon",
714 "441664", "Melton\ Mowbray",
715 "441863", "Ardgay",
716 "441621", "Maldon",
717 "4414372", "Clynderwen\ \(Clunderwen\)",
718 "4413393", "Aboyne",
719 "44141", "Glasgow",
720 "4416868", "Newtown",
721 "4416864", "Llanidloes",
722 "441981", "Wormbridge",
723 "441473", "Ipswich",
724 "441501", "Harthill",
725 "442883", "Northern\ Ireland",
726 "441327", "Daventry",
727 "4419647", "Patrington",
728 "441675", "Coleshill",
729 "441931", "Shap",
730 "441264", "Andover",
731 "4418474", "Thurso",
732 "4418478", "Thurso",
733 "442868", "Kesh",
734 "441293", "Crawley",
735 "442843", "Newcastle\ \(Co\.\ Down\)",
736 "441757", "Selby",
737 "441970", "Aberystwyth",
738 "442837", "Armagh",
739 "441707", "Welwyn\ Garden\ City",
740 "441297", "Axminster",
741 "442847", "Northern\ Ireland",
742 "441753", "Slough",
743 "441829", "Tarporley",
744 "4418473", "Thurso",
745 "441825", "Uckfield",
746 "441978", "Wrexham",
747 "441323", "Eastbourne",
748 "4414379", "Haverfordwest",
749 "441477", "Holmes\ Chapel",
750 "4416863", "Llanidloes",
751 "442887", "Dungannon",
752 "4419751", "Alford\ \(Aberdeen\)\/Strathdon",
753 "4414347", "Hexham",
754 "441362", "Dereham",
755 "4413394", "Ballater",
756 "4413398", "Aboyne",
757 "441376", "Braintree",
758 "4412295", "Barrow\-in\-Furness",
759 "441424", "Hastings",
760 "441461", "Gretna",
761 "441492", "Colwyn\ Bay",
762 "441661", "Prudhoe",
763 "441823", "Taunton",
764 "441624", "Isle\ of\ Man",
765 "441759", "Pocklington",
766 "441862", "Tain",
767 "441786", "Stirling",
768 "441692", "North\ Walsham",
769 "441876", "Lochmaddy",
770 "441677", "Bedale",
771 "4419643", "Patrington",
772 "4418902", "Coldstream",
773 "4413873", "Langholm",
774 "441746", "Bridgnorth",
775 "441736", "Penzance",
776 "441329", "Fareham",
777 "441250", "Blairgowrie",
778 "441258", "Blandford",
779 "4414344", "Bellingham",
780 "441325", "Darlington",
781 "4414348", "Hexham",
782 "4413397", "Ballater",
783 "441952", "Telford",
784 "441208", "Bodmin",
785 "441475", "Greenock",
786 "441798", "Pulborough",
787 "442885", "Ballygawley",
788 "441582", "Luton",
789 "441902", "Wolverhampton",
790 "441744", "St\ Helens",
791 "44113", "Leeds",
792 "442889", "Fivemiletown",
793 "441790", "Spilsby",
794 "441479", "Grantown\-on\-Spey",
795 "441200", "Clitheroe",
796 "4414343", "Haltwhistle",
797 "4416867", "Llanidloes",
798 "441528", "Laggan",
799 "441542", "Keith",
800 "441911", "Tyneside\/Durham\/Sunderland",
801 "441874", "Brecon",
802 "441673", "Market\ Rasen",
803 "441784", "Staines",
804 "4418511", "Great\ Bernera\/Stornoway",
805 "441626", "Newton\ Abbot",
806 "4418477", "Tongue",
807 "442845", "Northern\ Ireland",
808 "441295", "Banbury",
809 "442849", "Northern\ Ireland",
810 "441299", "Bewdley",
811 "4414305", "North\ Cave",
812 "441709", "Rotherham",
813 "44118", "Reading",
814 "4415075", "Spilsby\ \(Horncastle\)",
815 "441827", "Tamworth",
816 "4419648", "Hornsea",
817 "4419644", "Patrington",
818 "4418909", "Ayton",
819 "44161", "Manchester",
820 "441520", "Lochcarron",
821 "44287", "Northern\ Ireland",
822 "441506", "Bathgate",
823 "441340", "Craigellachie\ \(Aberlour\)",
824 "4414370", "Haverfordwest\/Clynderwen\ \(Clunderwen\)",
825 "441493", "Great\ Yarmouth",
826 "441986", "Bungay",
827 "441330", "Banchory",
828 "441608", "Chipping\ Norton",
829 "44239", "Portsmouth",
830 "441464", "Insch",
831 "441959", "Westerham",
832 "441600", "Monmouth",
833 "441394", "Felixstowe",
834 "441955", "Wick",
835 "441322", "Dartford",
836 "441348", "Fishguard",
837 "441554", "Llanelli",
838 "441363", "Crediton",
839 "441695", "Skelmersdale",
840 "441226", "Barnsley",
841 "441865", "Oxford",
842 "441380", "Devizes",
843 "441273", "Brighton",
844 "441946", "Whitehaven",
845 "441388", "Bishop\ Auckland",
846 "441869", "Bicester",
847 "44121", "Birmingham",
848 "441752", "Plymouth",
849 "4413391", "Aboyne\/Ballater",
850 "4419758", "Strathdon",
851 "4419754", "Alford\ \(Aberdeen\)",
852 "4414376", "Haverfordwest",
853 "442828", "Larne",
854 "441292", "Ayr",
855 "442842", "Kircubbin",
856 "441944", "West\ Heslerton",
857 "441535", "Keighley",
858 "441702", "Southend\-on\-Sea",
859 "441224", "Aberdeen",
860 "441261", "Banff",
861 "441545", "Llanarth",
862 "441934", "Weston\-super\-Mare",
863 "4416861", "Newtown\/Llanidloes",
864 "441549", "Lairg",
865 "4419753", "Strathdon",
866 "441277", "Brentwood",
867 "44114703", "Sheffield",
868 "441539", "Kendal",
869 "442820", "Ballycastle",
870 "441905", "Worcester",
871 "4418517", "Stornoway",
872 "441466", "Huntly",
873 "441650", "Cemmaes\ Road",
874 "4418471", "Thurso\/Tongue",
875 "441367", "Faringdon",
876 "441472", "Grimsby",
877 "442882", "Omagh",
878 "441984", "Watchet\ \(Williton\)",
879 "441497", "Hay\-on\-Wye",
880 "441556", "Castle\ Douglas",
881 "441371", "Great\ Dunmow",
882 "441909", "Worksop",
883 "441237", "Bideford",
884 "441381", "Fortrose",
885 "441579", "Liskeard",
886 "442897", "Saintfield",
887 "4413882", "Stanhope\ \(Eastgate\)",
888 "4412293", "Millom",
889 "441974", "Llanon",
890 "441482", "Kingston\-upon\-Hull",
891 "4416865", "Newtown",
892 "441575", "Kirriemuir",
893 "442866", "Enniskillen",
894 "441287", "Guisborough",
895 "441420", "Alton",
896 "441341", "Barmouth",
897 "4418475", "Thurso",
898 "4414307", "Market\ Weighton",
899 "4415077", "Louth",
900 "441142", "Sheffield",
901 "441432", "Hereford",
902 "441442", "Hemel\ Hempstead",
903 "441428", "Haslemere",
904 "441769", "South\ Molton",
905 "441852", "Kilmelford",
906 "441651", "Oldmeldrum",
907 "44114707", "Sheffield",
908 "441765", "Ripon",
909 "441283", "Burton\-on\-Trent",
910 "441260", "Congleton",
911 "44114705", "Sheffield",
912 "441923", "Watford",
913 "441962", "Winchester",
914 "441233", "Ashford\ \(Kent\)",
915 "442821", "Martinstown",
916 "441268", "Basildon",
917 "4413395", "Aboyne",
918 "4412298", "Barrow\-in\-Furness",
919 "4412294", "Barrow\-in\-Furness",
920 "442893", "Ballyclare",
921 "441243", "Chichester",
922 "441439", "Helmsley",
923 "4414234", "Boroughbridge",
924 "4414238", "Harrogate",
925 "441809", "Tomdoun",
926 "441449", "Stowmarket",
927 "441727", "St\ Albans",
928 "44117", "Bristol",
929 "441445", "Gairloch",
930 "441805", "Torrington",
931 "441145", "Sheffield",
932 "441435", "Heathfield",
933 "441683", "Moffat",
934 "441884", "Tiverton",
935 "442879", "Magherafelt",
936 "441489", "Bishops\ Waltham",
937 "4418515", "Stornoway",
938 "441357", "Strathaven",
939 "441303", "Folkestone",
940 "44283", "Northern\ Ireland",
941 "441456", "Glenurquhart",
942 "441597", "Llandrindod\ Wells",
943 "441572", "Oakham",
944 "441668", "Bamburgh",
945 "441643", "Minehead",
946 "441404", "Honiton",
947 "441844", "Thame",
948 "4415071", "Louth\/Alford\ \(Lincs\)\/Spilsby\ \(Horncastle\)",
949 "441485", "Hunstanton",
950 "441566", "Launceston",
951 "441633", "Newport",
952 "4414301", "North\ Cave\/Market\ Weighton",
953 "441834", "Narberth",
954 "441454", "Chipping\ Sodbury",
955 "441647", "Moretonhampstead",
956 "441969", "Leyburn",
957 "441637", "Newquay",
958 "441910", "Tyneside\/Durham\/Sunderland",
959 "441307", "Forfar",
960 "441564", "Lapworth",
961 "441353", "Ely",
962 "441918", "Tyneside",
963 "441593", "Lybster",
964 "441406", "Holbeach",
965 "4417687", "Keswick",
966 "441855", "Ballachulish",
967 "4414233", "Boroughbridge",
968 "441687", "Mallaig",
969 "441886", "Bromyard\ \(Knightwick\/Leigh\ Sinton\)",
970 "441776", "Stranraer",
971 "441723", "Scarborough",
972 "441859", "Harris",};
973 8 my $timezones = {
974 '' => [
975 'Europe/Guernsey',
976 'Europe/Isle_of_Man',
977 'Europe/Jersey',
978 'Europe/London'
979 ],
980 '1' => [
981 'Europe/London'
982 ],
983 '1481' => [
984 'Europe/Guernsey'
985 ],
986 '1534' => [
987 'Europe/Jersey'
988 ],
989 '1624' => [
990 'Europe/Isle_of_Man'
991 ],
992 '2' => [
993 'Europe/London'
994 ],
995 '3' => [
996 'Europe/Guernsey',
997 'Europe/Isle_of_Man',
998 'Europe/London'
999 ],
1000 '5' => [
1001 'Europe/Guernsey',
1002 'Europe/Isle_of_Man',
1003 'Europe/London'
1004 ],
1005 '70' => [
1006 'Europe/Guernsey',
1007 'Europe/Isle_of_Man',
1008 'Europe/London'
1009 ],
1010 '71' => [
1011 'Europe/Guernsey',
1012 'Europe/Isle_of_Man',
1013 'Europe/London'
1014 ],
1015 '72' => [
1016 'Europe/Guernsey',
1017 'Europe/Isle_of_Man',
1018 'Europe/London'
1019 ],
1020 '73' => [
1021 'Europe/Guernsey',
1022 'Europe/Isle_of_Man',
1023 'Europe/London'
1024 ],
1025 '74' => [
1026 'Europe/Guernsey',
1027 'Europe/Isle_of_Man',
1028 'Europe/London'
1029 ],
1030 '75' => [
1031 'Europe/Guernsey',
1032 'Europe/Isle_of_Man',
1033 'Europe/London'
1034 ],
1035 '760' => [
1036 'Europe/Guernsey',
1037 'Europe/Isle_of_Man',
1038 'Europe/London'
1039 ],
1040 '762' => [
1041 'Europe/Guernsey',
1042 'Europe/Isle_of_Man',
1043 'Europe/London'
1044 ],
1045 '763' => [
1046 'Europe/Guernsey',
1047 'Europe/Isle_of_Man',
1048 'Europe/London'
1049 ],
1050 '7640' => [
1051 'Europe/Guernsey',
1052 'Europe/Isle_of_Man',
1053 'Europe/London'
1054 ],
1055 '7641' => [
1056 'Europe/Guernsey',
1057 'Europe/Isle_of_Man',
1058 'Europe/London'
1059 ],
1060 '7643' => [
1061 'Europe/Guernsey',
1062 'Europe/Isle_of_Man',
1063 'Europe/London'
1064 ],
1065 '7644' => [
1066 'Europe/Guernsey',
1067 'Europe/Isle_of_Man',
1068 'Europe/London'
1069 ],
1070 '7646' => [
1071 'Europe/Guernsey',
1072 'Europe/Isle_of_Man',
1073 'Europe/London'
1074 ],
1075 '765' => [
1076 'Europe/Guernsey',
1077 'Europe/Isle_of_Man',
1078 'Europe/London'
1079 ],
1080 '766' => [
1081 'Europe/Guernsey',
1082 'Europe/Isle_of_Man',
1083 'Europe/London'
1084 ],
1085 '767' => [
1086 'Europe/Guernsey',
1087 'Europe/Isle_of_Man',
1088 'Europe/London'
1089 ],
1090 '768' => [
1091 'Europe/Guernsey',
1092 'Europe/Isle_of_Man',
1093 'Europe/London'
1094 ],
1095 '7693' => [
1096 'Europe/Guernsey',
1097 'Europe/Isle_of_Man',
1098 'Europe/London'
1099 ],
1100 '7699' => [
1101 'Europe/Guernsey',
1102 'Europe/Isle_of_Man',
1103 'Europe/London'
1104 ],
1105 '77' => [
1106 'Europe/Guernsey',
1107 'Europe/Isle_of_Man',
1108 'Europe/London'
1109 ],
1110 '78' => [
1111 'Europe/Guernsey',
1112 'Europe/Isle_of_Man',
1113 'Europe/London'
1114 ],
1115 '79' => [
1116 'Europe/Guernsey',
1117 'Europe/Isle_of_Man',
1118 'Europe/London'
1119 ],
1120 '8' => [
1121 'Europe/Guernsey',
1122 'Europe/Isle_of_Man',
1123 'Europe/London'
1124 ],
1125 '9' => [
1126 'Europe/Guernsey',
1127 'Europe/Isle_of_Man',
1128 'Europe/London'
1129 ]
1130 };
1131  
1132 116 ▶ sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
1133 116 my $class = shift;
1134 116 my $number = shift;
1135 116 $number =~ s/(^\+44|\D)//g;
1136 116 my $self = bless({ country_code => '44', number => $number, formatters => $formatters, validators => $validators, timezones => $timezones, areanames => \%areanames}, $class);
1137 116 ▶ return $self if ($self->is_valid());
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_valid 18 98 116
1138 98 $number =~ s/^(?:([25-8]\d{5})$|0|180020)//;
1139 98 $self = bless({ country_code => '44', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class);
1140 98 ▶ return $self->is_valid() ? $self : undef;
Branch: 1 branch
BranchTrueFalseTotal
$self->is_valid ? : 10 88 98
1141 }
1142 8 1;
« blib/lib/Number/Phone/StubCountry/GG.pm ↑ Summary blib/lib/Number/Phone/StubCountry/JE.pm »