MobilePhone::MCC - Class and Functions to manipulate Mobile Country Codes.
Version 0.01
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; ...
Check if a supplied mcc value could be a valid mobile country code.
Check if a supplied country code matches that defined as A2 in ISO 3166.
Create a new MobilePhone::MCC object. This can be queried to return information about that code. e.g. County code or Country name.
Get or set the mobile county code
Get or set the county code. This should be in the A2 format defined in ISO 3166
Retrive the country name of the current mobile country code.
Ali Craigmile, <ali at hodgers.com>
<ali at hodgers.com>
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.
Locale::Country
for more detailed example of using this package.
for an (almost) exhaustive HTML list of MCC codes.
for more detailed ISO Country Code information, especially when it comes to explaining what A2 is.
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.
To install MobilePhone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MobilePhone
CPAN shell
perl -MCPAN -e shell install MobilePhone
For more information on module installation, please visit the detailed CPAN module installation guide.