DOKK / manpages / debian 12 / libxmltv-perl / XMLTV::Gunzip.3pm.en
Gunzip(3pm) User Contributed Perl Documentation Gunzip(3pm)

    XMLTV::Gunzip - Wrapper to Compress::Zlib or gzip(1)

    use XMLTV::Gunzip;
    my $decompressed = gunzip($gzdata);
    my $fh = gunzip_open('file.gz') or die;
    while (<$fh>) { print }

Compress::Zlib will be used if installed, otherwise an external gzip will be spawned. gunzip() returns the decompressed data and throws an exception if things go wrong; gunzip_open() returns a filehandle, or undef.

Ed Avis, ed@membled.com. Distributed as part of the xmltv package.

Compress::Zlib, gzip(1), XMLTV.

2023-02-24 perl v5.36.0