MobilePhone::MCC - Class and Functions to manipulate Mobile Country Codes.
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 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.
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.