NAME
Tie::TieDict
-- A Perl tie to a dictionary file
SYNOPSIS
tie %MyDict, 'Tie::TieDict', *FILEHANDLE, $Dict, $fold
tie %MyDict, 'Tie::TieDict', $FileName, $Dict, $fold
dict is optional; defaults to true. If dict is true, search the file in dictionary order -- ignore anything but whitespace and word characters.
fold is optional; defaults to true. If fold is true, ignore case.
DESCRIPTION
Methods
Data_scan
-- this scans the passed string and returns the working structure for whatever the string is. Defaults to just returning the string; override this method if you want something better.
Data_fmt
-- this formats the passed structure into a string. This structure was (most likely) generated by Data_scan
and should able to be read by it later.
Format of file
KEY - DATA
The KEY begins with any non space character, may otherwise contain any character, but must end with a character other than a dash or a space. The DATA part is scanned by the Data_scan
method.
AUTHOR
Randall Maas (randym@acm.org, http://www.hamline.edu/~rcmaas/)