ESPPlus::Storage::Reader::Tie - A simple interface for reading ESP+ Storage repository files
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;
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 2003, Joshua b. Jore. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; version 2, or
b) the "Artistic License" which comes with Perl.
ESPPlus::Storage::Reader ESPPlus::Storage
To install ESPPlus::Storage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ESPPlus::Storage
CPAN shell
perl -MCPAN -e shell install ESPPlus::Storage
For more information on module installation, please visit the detailed CPAN module installation guide.