XMLTV::Gunzip - Man Page

Wrapper to Compress::Zlib or gzip(1)

Synopsis

    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.

Author

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

See Also

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

Info

2024-08-06 perl v5.40.0 User Contributed Perl Documentation