ዳንኤል ያዕቆብ > Locales > language7.pl

Download:
Locales-0.04.tar.gz

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Source  

NAME ^

language7.pl - Demonstration of Language Module language2code Usage.

SYNOPSIS ^

./language7.pl

DESCRIPTION ^

THis is the same script as language1.pl but demonstrating the language2code method instead of 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";

AUTHOR ^

Daniel Yacob, dyacob@cpan.org

SEE ALSO ^

Locales::Language::am Locales::Language::de Locales::Language::en Locales::Language::fr

syntax highlighting: