Shell File Manager

Current Path : /usr/share/doc/perl-IO-Compress-2.061/compress-zlib/
Upload File :
Current File : //usr/share/doc/perl-IO-Compress-2.061/compress-zlib/filtinf

#!/usr/bin/perl

use strict ;
use warnings ;

use Compress::Zlib ;

my $x = inflateInit()
   or die "Cannot create a inflation stream\n" ;

my $input = '' ;
binmode STDIN;
binmode STDOUT;

my ($output, $status) ;
while (read(STDIN, $input, 4096))
{
    ($output, $status) = $x->inflate(\$input) ;

    print $output 
        if $status == Z_OK or $status == Z_STREAM_END ;

    last if $status != Z_OK ;
}

die "inflation failed\n"
    unless $status == Z_STREAM_END ;


Shell File Manager Version 1.1, Coded By Shell
Email: [email protected]