|
Number::Phone::Country - Lookup country of phone number |
Number::Phone::Country - Lookup country of phone number
use Number::Phone::Country;
#returns 'CA' for Canada
my $iso_country_code = phone2country("1 (604) 111-1111");
This module lookups up the country based on a telephone number. It uses the International Direct Dialing (IDD) prefix, and lookups North American numbers using the Area Code, in accordance with the North America Numbering Plan (NANP).
the Parse::PhoneNumber manpage
Not very throughly tested, bug reports, and fixed welcome.
TJ Mather, <tjmather@maxmind.com>
Copyright 2003 by MaxMind LLC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Number::Phone::Country - Lookup country of phone number |