language7.pl - Demonstration of Language Module language2code Usage.
language2code
./language7.pl
THis is the same script as language1.pl but demonstrating the language2code method instead of code2language.
code2language
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 language2code method is demonstrated. For example:
require Locales::Language::am; my $am = new Locales::Language::am; print $am->getLocale, " => ", $am->language2code ( "እንግሊዝኛ" ), "\n";
Daniel Yacob, dyacob@cpan.org
Locales::Language::am Locales::Language::de Locales::Language::en Locales::Language::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.