
Myco::Constants

use Myco::Constants; # Language data $arrayref = Myco::Constants->language_codes; $hashref = Myco::Constants->language_hash_by_code;

A simple container for constant data.

List context: returns array of ISO 3166-1 country codes, alpha sorted. Scalar context: returns reference to this array.
List context: returns hash of country code/name key/value pairs. Scalar context: returns reference to this array.
List context: returns array of ISO 639 language codes, alpha sorted except that the preferred language is listed first (hard-coded at present). Scalar context: returns reference to this array.
List context: returns hash of language code/full_name key/value pairs. Scalar context: returns reference to this hash.

Copyright (c) 2006 the myco project. All rights reserved. This software is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Myco::Constants::Test, Myco::Entity, Myco, Tangram, Class::Tangram, myco-mkentity