The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Thesaurus::CSV - Read/write thesarus data from/to a file

SYNOPSIS

  use Thesaurus::CSV;

  my $book = Thesaurus::CSV->new( filename => '/some/file/name.csv' );

DESCRIPTION

This subclass of Thesaurus implements persistence by reading and storing data in a CSV format text file.

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.

This module requires the Text::CSV_XS module from CPAN.

METHODS

  • 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.

  • save

    Writes the contents of the object to its associated file.