country2.pl - Demonstration of Locales::Country OO Usage.
./country2.pl
This is a simple demonstration script that shows how the top level Locales::Country module can be used to instantiate a new object set for a supported country passed as an argument at creation time. For example:
require Locales::Country; my $am = new Locales::Country ( "am" ); print $am->getLocale, " => ", $am->code2country ( "gb" ), "\n";
Daniel Yacob, dyacob@cpan.org
Locales::Country
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.