3 use Compress::Raw::Zlib ;
11 my $x = new Compress::Raw::Zlib::Inflate
12 or die "Cannot create a inflation stream\n" ;
18 while (read(STDIN, $input, 4096))
20 $status = $x->inflate($input, $output) ;
23 if $status == Z_OK or $status == Z_STREAM_END ;
25 last if $status != Z_OK ;
28 die "inflation failed\n"
29 unless $status == Z_STREAM_END ;