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

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