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