language1.pl - Demonstration of Language Module OO Usage.
./language1.pl
This is a simple demonstration script that shows how language modules (locale really) can be used directly to instantiate a Locales::Language instance in the language supported by the module. The code2language method is demonstrated. For example:
code2language
require Locales::Language::am; my $am = new Locales::Language::am; print $am->getLocale, " => ", $am->code2language ( "en" ), "\n";
Daniel Yacob, dyacob@cpan.org
Locales::Language::am Locales::Language::de Locales::Language::en Locales::Language::fr
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.