The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MobilePhone::MCC - Class and Functions to manipulate Mobile Country Codes.

VERSION

Version 0.01

SYNOPSIS

The class defined in this module can be used to manage MCCs and tell you which country they apply to, etc.

Here are a few wee code snippets.

    use MobilePhone::MCC;
    
    my $iso_a2 = MobilePhone::MCC->new(234)->county;
    ...
        

EXPORT_OK

ValidMCC (MCC)

Check if a supplied mcc value could be a valid mobile country code.

ValidCountryCode (ISO_COUNTRY_CODE)

Check if a supplied country code matches that defined as A2 in ISO 3166.

CLASS METHODS

new [(MCC|ISO_COUNTRY_CODE)]

Create a new MobilePhone::MCC object. This can be queried to return information about that code. e.g. County code or Country name.

mcc [MCC]

Get or set the mobile county code

country (ISO_COUNTRY_CODE)

Get or set the county code. This should be in the A2 format defined in ISO 3166

country_name

Retrive the country name of the current mobile country code.

AUTHOR

Ali Craigmile, <ali at hodgers.com>

KNOWN BUGS AND CAVEATS

All mcc data is loaded from source on each object invocation which is time and processor consuming. A future release will include caching of this data.

County names should not be trusted for accuracy or to be correct given the current Locale. Use Locale::Country instead if you need accuracy.

ALSO SEE

examples/mcc.pl

for more detailed example of using this package.

http://en.wikipedia.org/wiki/Mobile_Network_Code

for an (almost) exhaustive HTML list of MCC codes.

http://search.cpan.org/dist/Locale-Codes/

for more detailed ISO Country Code information, especially when it comes to explaining what A2 is.

COPYRIGHT & LICENSE

Copyright 2007 Ali Craigmile, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.