ዳንኤል ያዕቆብ > Locales-0.04 > Locales::Country::zh

Download:
Locales-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Locales::Country::zh - ISO 3166-1 Country Codes in Chinese.

SYNOPSIS ^

  require Locales::Country::zh;

  my $zh = new Locales::Country::zh;

  print "  ", $zh->getLocale, " => ", $zh->code2country ( "cn" ), "\n";
  print "  ", $zh->getLocale, " => ", $zh->code2country ( "chn" ), "\n";
  print "  ", $zh->getLocale, " => ", $zh->code2country ( "156" ), "\n";

  print "  ", $zh->getLocale, " => ", $zh->country2code ( "中華人民共和國", "alpha2" ), "\n";
  print "  ", $zh->getLocale, " => ", $zh->country2code ( "中華人民共和國", "alpha3" ), "\n";
  print "  ", $zh->getLocale, " => ", $zh->country2code ( "中華人民共和國", "numeric" ), "\n";

DESCRIPTION ^

This module provides an OO interface to Chinese language ISO 3166-1 country codes. All of the functions available in the Locale::Country module are available here as class methods.

This module may be used indirectly through the Locales::Country module which also exports functions in the style of Locale::Country.

Documentation remains under development.

COPYRIGHT ^

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

BUGS ^

None presently known.

AUTHOR ^

Daniel Yacob, dyacob@cpan.org

SEE ALSO ^

Locales::Country

Included with this package:

  examples/country*.pl
syntax highlighting: