Thesaurus::CSV - Read/write thesarus data from/to a file
use Thesaurus::CSV; my $book = Thesaurus::CSV->new( filename => '/some/file/name.csv' );
This subclass of Thesaurus implements persistence by reading and storing data in a CSV format text file.
Thesaurus
This CSV file can easily be edited from a text editor
For very large objects, consider using the Thesaurus::BerkeleyDB subclass instead, as it is much more memory-efficient.
Thesaurus::BerkeleyDB
This module requires the Text::CSV_XS module from CPAN.
Text::CSV_XS
new
Besides those parameters taken by its parent class, Thesaurus, this class requires an additional parameter, filename. If this file exists when the object is created, data from the file be used to populate the object in memory.
filename
save
Writes the contents of the object to its associated file.
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.