3 Announcing release 1.00 of Compress::Zlib (formerly known as Zip
6 What is Compress::Zlib?
7 =======================
9 Compress::Zlib is a Perl external module which provides an interface to
10 the info-zip zlib compression library. zlib is a general purpose
13 Some of the features provided by Compress::Zlib include:
15 * in-memory compression and decompression
16 * read and write gzip (.gz) files directly.
18 By way of an example here is a small script which reads gzipped files
19 and writes the unzipped output to standard output.
24 die "Usage: gzcat file...\n"
27 foreach $file (@ARGV) {
28 $gz = gzopen($file, "rb")
29 or die "Cannot open $file: $gzerrno\n" ;
31 print $buffer while $gz->gzread($buffer) > 0 ;
33 die "Error reading from $file: $gzerrno\n" if $gzerrno ;
42 The latest copy of Compress::ZLib is available on CPAN
44 http://www.cpan.org/modules/by-module/Archive/Archive-Zip-*.tar.gz
46 and zlib is available at
48 http://www.gzip.org/zlib/