ESPPlus::Storage::Reader::Tie - A simple interface for reading ESP+ Storage repository files


ESPPlus-Storage documentation  | view source Contained in the ESPPlus-Storage distribution.

Index


NAME

Top

ESPPlus::Storage::Reader::Tie - A simple interface for reading ESP+ Storage repository files

SYNOPSIS

Top

 use Symbol 'gensym';
 use ESPPlus::Storage::Reader::Tie;

 my $db = gensym;
 tie *$db, 'ESPPlus::Storage::Reader::Tie,
   { filename => $Repository,
     uncompress_function => \&uncompress }
     or die "Can't tie \$db to $Repository: $!";
 while (my $record = <$db>) {
     print "$$record\n";
 }
 close $db;
 untie $db;

DESCRIPTION

Top

This allows for a simple file oriented API to an ESP+ Storage repository. You can just tie a file handle to your database and read it like it was a normal file. Not all of the Tie::Handle methods have been handled - everything associated with writing to the file is omitted.

If you find this useful or have suggestions I'm very open to alterations.

COPYRIGHT AND LICENSE

Top

SEE ALSO

Top

ESPPlus::Storage::Reader ESPPlus::Storage


ESPPlus-Storage documentation  | view source Contained in the ESPPlus-Storage distribution.