Number::Phone::Country - Lookup country of phone number


NAME

Number::Phone::Country - Lookup country of phone number


SYNOPSIS

  use Number::Phone::Country;
  #returns 'CA' for Canada
  my $iso_country_code = phone2country("1 (604) 111-1111");


ABSTRACT

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).


SEE ALSO

the Parse::PhoneNumber manpage


BUGS

Not very throughly tested, bug reports, and fixed welcome.


AUTHOR

TJ Mather, <tjmather@maxmind.com>


COPYRIGHT AND LICENSE

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