in reply to Can I modify a single chunk of a gzip stream?
(worked for me on a simple task)use PerlIO::gzip; open my $fh, "<:gzip", $gzfile or die "$gzfile: $!\n"; binmode STDOUT, ":gzip"; while(<$fh>) { # do stuff print; }
UPDATE: (2010-10-18) It seems that PerlIO::gzip should be viewed as superseded by PerlIO::via:gzip. (see PerlIO::gzip or PerlIO::via::gzip).
|
|---|