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

NAME

Country::Codes - Perl extension for converting from a two-letter (ISO 3166-1 alpha-2) to the Country's full name.

SYNOPSIS

  use Country::Codes;
  
  $country_code = country($code);

DESCRIPTION

Country::Codes, is used converting from a two-letter (ISO 3166-1 alpha-2) to the Country's full name.

EXAMPLE USAGE

  use Country::Codes;

  print "What is the Country Code? ";

  my $code = <STDIN>;
  chop($code);

  unless (country($code)) { print "This country does not exist yet :-("; exit;}
  print "\nCountry Code is " . country($code) . " !";

EXPORT

@EXPORT = qw(country);

SEE ALSO

Country codes are short alphabetic or numeric geographical codes (geocodes) developed to represent countries and dependent areas, for use in data processing and communications. Several different systems have been developed to do this. The best known of these is ISO 3166-1.

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

AUTHOR

Jason C. Rochon, <jcrochon@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Jason C. Rochon

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.