WE::DB::Glossary - glossary data database.
my $u = WE::DB::Glossary->new(undef, $glossary_db_file, %args); $u->add_entry(Keyword => ..., Description => ...); $glossary_obj = $u->get_entry($keyword);
Database for administration of glossary entries. You can add, delete, modify and retrieve glossary entries.
The glossary entries are WE::GlossaryObj objects with the following members:
WE::GlossaryObj
The keyword for this entry. The keyword is also used as the key in the database hash.
The descriptive text for this keyword. The value is opaque and may be language-dependent (e.g. by using WE::Util::LangString), HTML or plain text or whatever.
The following methods are defined for WE::DB::Glossary:
WE::DB::Glossary
Add a glossary object with Keyword and Description. If -force is set to true, then existing entries will get overwritten, otherwise an exception will be raised.
-force
Like the other add_entry() method, but use a pre-build WE::GlossaryObj object instead.
Delete the named entry.
Get a WE::GlossaryObj object for the specified $keyword or undef.
Retrieve the description element for the specified $keyword or undef.
Return a list of WE::GlossaryObjs which keywords match the given regular expression. NYI.
Create a regular expression with all keywords used in the database. The $filter is optional and should be a code reference accepting the keyword as first parameter and return a boolean value for acceptance.
Slaven Rezic - slaven@rezic.de
WE::DB, MLDBM
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.