Pangloss::Language - a language in Pangloss.
use Pangloss::Language qw( dirRTL dirLTR ); my $language = new Pangloss::Language(); $language->name( $text ) ->iso_code( $text ) ->direction( dirRTL ) ->creator( $user ) ->notes( $text ) ->date( time ) ->validate; # catch Pangloss::Language::Errors do { ... } if $language->is_ltr();
This class represents a language in Pangloss.
It inherits from Pangloss::StoredObject::Common and Pangloss::Collection::Item.
Exports two constants on request for use with language direction:
dir_LTR (left to right) dir_RTL (right to left)
set/get ISO code.
set/get language direction.
test if the language direction is the above.
Steve Purkis <spurkis@quiup.com>
Pangloss, Pangloss::Language::Error, Pangloss::Languages
To install Pangloss, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pangloss
CPAN shell
perl -MCPAN -e shell install Pangloss
For more information on module installation, please visit the detailed CPAN module installation guide.