Thesaurus::File - Subclass of Thesaurus that implements persistence using CSV format text files.
use Thesaurus::File; my $book = Thesaurus->new( ignore_case => 1, files => ['file1.csv', 'file2.csv'] );
This subclass of Thesaurus implements persistence through the use of CSV format text files.
add_files
$th->add_files($filename1, $filenam2, ...);
This method adds the contents of the given files to the thesaurus object. If an entry in the files matches an entry already in the object, then it is appended to the existing list, otherwise a new entry is created.
save(%params)
Writes the contents of the object to a CSV format file. It takes the following named parameters:
filename ($) - The filename where the data will be written.
mode ($) - This determines whether to write or append the data. This should be a string ('write' or 'append').
Dave Rolsky, <autarch@urth.org>
Thesaurus, Thesaurus::DBM, Thesaurus::DBI
Copyright (c) 1999 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Thesaurus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thesaurus
CPAN shell
perl -MCPAN -e shell install Thesaurus
For more information on module installation, please visit the detailed CPAN module installation guide.