Number::Phone::NANP::VC - VC-specific methods for Number::Phone


Number-Phone documentation Contained in the Number-Phone distribution.

Index


Code Index:

NAME

Top

Number::Phone::NANP::VC - VC-specific methods for Number::Phone

DESCRIPTION

Top

This class implements VC-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.

SYNOPSIS

Top

    use Number::Phone::NANP;

    my $phone_number = Number::Phone->new('+1 784 488 1000');
    # returns a Number::Phone::NANP::VC object

METHODS

Top

The following methods from Number::Phone are overridden:

regulator

Returns information about the national telecoms regulator.

BUGS/FEEDBACK

Top

Please report bugs by email, including, if possible, a test case.

I welcome feedback from users.

LICENCE

Top

You may use, modify and distribute this software under the same terms as perl itself.

AUTHOR

Top

David Cantrell <david@cantrell.org.uk>

Copyright 2005


Number-Phone documentation Contained in the Number-Phone distribution.
package Number::Phone::NANP::VC;

# numbering plan at http://www.itu.int/itudoc/itu-t/number/s/svg/82143.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 { 'NTRC, http://www.ntrc.vc/'; }

1;