Locale::Maketext::Lexicon::Tie - Use tied hashes as lexicons for Maketext
package Hello::L10N; use base 'Locale::Maketext'; use Locale::Maketext::Lexicon { en => [ Tie => [ DB_File => 'en.db' ] ], };
This module lets you easily tie the %Lexicon hash to a database or other data sources. It takes an array reference of arguments, and passes them directly to tie().
tie
%Lexicon
tie()
Entries will then be fetched whenever it is used; this module does not cache them.
Locale::Maketext, Locale::Maketext::Lexicon
Autrijus Tang <autrijus@autrijus.org>
Copyright 2002, 2003, 2004 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Locale::Maketext::Lexicon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Maketext::Lexicon
CPAN shell
perl -MCPAN -e shell install Locale::Maketext::Lexicon
For more information on module installation, please visit the detailed CPAN module installation guide.