WE::Util::LangString - language-dependent strings
use WE::Util::LangString qw(new_langstring langstring set_langstring);
This module deals with language-dependent strings.
Create a new WE::Util::LangString object and optionally initializes the object with values.
WE::Util::LangString
Same as the new constructor, but shorter form.
new
Get the value for the specified language. If no language is specified or there is no language value in the object, then the english version is returned. If there is no english version, return the first value found in the object.
This is an alias for get.
get
Set the string $string for language $language to the object $obj. If $obj is not yet a WE::Util::LangString object, then it will be blessed automatically into it. If $language is not specified, then a default language (as set in $DEFAULT_LANG, normally english) is used.
$string
$language
$obj
$DEFAULT_LANG
Dump the content of the langstring as a one-line string.
Add $newstr to $oldstr. If $oldstr is a WE::Util::LangString object, than add $newstr to all language variants in the object. If both arguments are WE::Util::LangString objects, then the corresponding language versions are concatenated.
$newstr
$oldstr
Slaven Rezic - slaven@rezic.de
To install WE::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WE::DB
CPAN shell
perl -MCPAN -e shell install WE::DB
For more information on module installation, please visit the detailed CPAN module installation guide.