Is there some particular advantage to using a Perl library, as opposed to a command-line utility that is working for you? I would personally just use gunzip, read the file line by line if you don't want the whole thing in memory, then unlink it or gzip it again.