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


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

Index


Code Index:

NAME

Top

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

DESCRIPTION

Top

This class implements VG-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 284 494 4444');
    # returns a Number::Phone::NANP::VG 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::VG;

# numbering plan at http://www.itu.int/itudoc/itu-t/number/b/vbr/76069.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 { 'Ministry of Communications and Works, http://www.bvi.gov.vg/'; }

1;