| Number-Phone documentation | Contained in the Number-Phone distribution. |
Number::Phone::NANP::LC - LC-specific methods for Number::Phone
This class implements LC-specific methods for Number::Phone. It is
a subclass of Number::Phone::NANP, which is in turn a subclass of
Number::Phone. Number::Phone::NANP sits in the middle because all
NANP countries can share some significant chunks of code. You should
never need to use this module directly, as Number::Phone::NANP
will load it automatically when needed.
use Number::Phone::NANP;
my $phone_number = Number::Phone->new('+1 758 453 9300');
# returns a Number::Phone::NANP::LC object
The following methods from Number::Phone are overridden:
Returns information about the national telecoms regulator.
Please report bugs by email, including, if possible, a test case.
I welcome feedback from users.
You may use, modify and distribute this software under the same terms as perl itself.
David Cantrell <david@cantrell.org.uk>
Copyright 2005
| Number-Phone documentation | Contained in the Number-Phone distribution. |
package Number::Phone::NANP::LC; # numbering plan at http://www.itu.int/itudoc/itu-t/number/s/lca/82291.html use strict; use base 'Number::Phone::NANP'; use Number::Phone::Country qw(noexport); our $VERSION = 1.1; my $cache = {}; # NB this module doesn't register itself, the NANP module should be # used and will load this one as necessary
sub regulator { 'ECTEL, http://www.ectel.int/'; }
1;