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