NAME
Lingua::ZH::CEDICT::Storable - Interface for stored dictionary data
SYNOPSIS
use Lingua::ZH::CEDICT;
# these are the default values; you may omit them
$dict = Lingua::ZH::CEDICT->new(source => "Storable",
filename => "$libdir/CEDICT.store");
# load data from cedict.store
$dict->init();
# or import from textfile and store in cedict.store for future use
$tdict = Lingua::ZH::CEDICT->new{src => "Textfile");
$dict->importData($tdict);
DESCRIPTION
This module uses Storable to load the dictionary data, which allows for faster startup times.
METHODS
There are a number of methods you might find useful to work with the data once it is in memory. They are included and described in Lingua::ZH::CEDICT, just in case you want to use them with one of the other interface modules as well.
importData
Accepts a Lingua::ZH::CEDICT object as parameter. Stores the data from the dictionary object inside a Storable file.
PREREQUISITES
AUTHOR
Christian Renz, <crenz@web42.com>
LICENSE
Copyright (C) 2002-2005 Christian Renz. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.