DOKK / manpages / debian 10 / perl-doc / DBM_Filter::compress.3perl.en
DBM_Filter::compress(3perl) Perl Programmers Reference Guide DBM_Filter::compress(3perl)

DBM_Filter::compress - filter for DBM_Filter

    use SDBM_File; # or DB_File, GDBM_File, NDBM_File, ODBM_File
    use DBM_Filter ;
    $db = tie %hash, ...
    $db->Filter_Push('compress');

This DBM filter will compress all data before it is written to the database and uncompressed it on reading.

A fatal error will be thrown if the Compress::Zlib module is not available.

DBM_Filter, perldbmfilter, Compress::Zlib

Paul Marquess pmqs@cpan.org

2020-07-21 perl v5.28.1