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