DBM\_Filter::compress(3pm) Perl Programmers Reference Guide DBM\_Filter::compress(3pm)

# [NAME](#NAME)

DBM\_Filter::compress - filter for DBM\_Filter

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

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.

# [SEE ALSO](#SEE_ALSO)

DBM\_Filter, perldbmfilter, Compress::Zlib

# [AUTHOR](#AUTHOR)

Paul Marquess pmqs@cpan.org

2026-10-26 perl v5.44.0

---

Document: DBM_Filter::compress(3pm) from perl 5.44.0-r3 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
