Country::Codes - Perl extension for converting from a two-letter (ISO 3166-1 alpha-2) to the Country's full name.
use Country::Codes; $country_code = country($code);
Country::Codes, is used converting from a two-letter (ISO 3166-1 alpha-2) to the Country's full name.
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 = qw(country);
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
Jason C. Rochon, <jcrochon@cpan.org>
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.
To install Country::Codes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Country::Codes
CPAN shell
perl -MCPAN -e shell install Country::Codes
For more information on module installation, please visit the detailed CPAN module installation guide.