in reply to Compress zlib and friends
use PerlIO::gzip; open( my $fh , ">:gzip", "file.txt.gz") || die $!; print $fh "hello!\n"; close($fh); open( my $fh2 , "<:gzip", "file.txt.gz") || die $!; print <$fh2>; close($fh2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Compress zlib and friends
by blazar (Canon) on Jul 15, 2005 at 10:31 UTC |