country7.pl - Demonstration of Country Module country2code Usage.
country2code
./country7.pl
THis is the same script as country1.pl but demonstrating the country2code method instead of code2country.
code2country
This is a simple demonstration script that shows how country modules (locale really) can be used directly to instantiate a Locales::Country instance in the country supported by the module. The country2code method is demonstrated. For example:
require Locales::Country::am; my $am = new Locales::Country::am; print $am->getLocale, " => ", $am->country2code ( "እንግሊዝ" ), "\n";
Daniel Yacob, dyacob@cpan.org
Locales::Country::am Locales::Country::de Locales::Country::en Locales::Country::fr
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '"እንግሊዝ"'. Assuming UTF-8
To install Locales::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locales::Base
CPAN shell
perl -MCPAN -e shell install Locales::Base
For more information on module installation, please visit the detailed CPAN module installation guide.