---
name: "XMLTV::Gunzip"
section: "3pm"
platform: "linux"
package: "libxmltv-perl"
version: "1.4.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/XMLTV::Gunzip"
---

# XMLTV::Gunzip(3pm)

## NAME

```
    XMLTV::Gunzip - 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)](/gzip/1.md), XMLTV.
