3 use IO::Uncompress::Gunzip qw( $GunzipError );
7 #die "Usage: gzcat file...\n"
14 @ARGV = '-' unless @ARGV ;
16 foreach $file (@ARGV) {
18 my $gz = new IO::Uncompress::Gunzip $file
19 or die "Cannot open $file: $GunzipError\n" ;
22 while ($s = $gz->read($buffer)) > 0 ;
24 die "Error reading from $file: $GunzipError\n"