blib/lib/Number/Phone/NANP/AS.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Number/Phone/NANP/AI.pm ↑ Summary blib/lib/Number/Phone/NANP/BB.pm »
1 package Number::Phone::NANP::AS;
2  
3 # numbering plan at http://www.itu.int/itudoc/itu-t/number/a/sam/86412.html
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use base 'Number::Phone::NANP';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 ▶use Number::Phone::Country;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 our $VERSION = 1.1;
12  
13 3 my $cache = {};
14  
15 # NB this module doesn't register itself, the NANP module should be
16 # used and will load this one as necessary
17  
18 =head1 NAME
19  
20 Number::Phone::NANP::AS - AS-specific methods for Number::Phone
21  
22 =head1 DESCRIPTION
23  
24 This class implements AS-specific methods for Number::Phone. It is
25 a subclass of Number::Phone::NANP, which is in turn a subclass of
26 Number::Phone. Number::Phone::NANP sits in the middle because all
27 NANP countries can share some significant chunks of code. You should
28 never need to C<use> this module directly, as C<Number::Phone::NANP>
29 will load it automatically when needed.
30  
31 =head1 SYNOPSIS
32  
33 use Number::Phone::NANP;
34
35 my $phone_number = Number::Phone->new('+1 684 633 0001');
36 # returns a Number::Phone::NANP::AS object
37
38 =head1 METHODS
39  
40 The following methods from Number::Phone are overridden:
41  
42 =over 4
43  
44 =item regulator
45  
46 Returns information about the national telecomms regulator.
47  
48 =cut
49  
50 1 ▶sub regulator { return 'ASTCA, http://www.samoatelco.com/ ???'; }
Subroutine regulator: called CC=1 SCAR=0.0
Pod documented
51  
52 =back
53  
54 =head1 BUGS/FEEDBACK
55  
56 Please report bugs at L<https://github.com/DrHyde/perl-modules-Number-Phone/issues>, including, if possible, a test case.
57  
58 I welcome feedback from users.
59  
60 =head1 LICENCE
61  
62 You may use, modify and distribute this software under the same terms as
63 perl itself.
64  
65 =head1 AUTHOR
66  
67 David Cantrell E<lt>david@cantrell.org.ukE<gt>
68  
69 Copyright 2026
70  
71 =cut
72  
73 3 1;
« blib/lib/Number/Phone/NANP/AI.pm ↑ Summary blib/lib/Number/Phone/NANP/BB.pm »