GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/doc/perl-IO-Compress-2.061/compress-zlib/
Upload File :
Current File : //usr/share/doc/perl-IO-Compress-2.061/compress-zlib/filtdef

#!/usr/bin/perl

use strict ;
use warnings ;

use Compress::Zlib ;

binmode STDIN;
binmode STDOUT;
my $x = deflateInit()
   or die "Cannot create a deflation stream\n" ;

my ($output, $status) ;
while (<>)
{
    ($output, $status) = $x->deflate($_) ;

    $status == Z_OK
        or die "deflation failed\n" ;

    print $output ;
}

($output, $status) = $x->flush() ;

$status == Z_OK
    or die "deflation failed\n" ;

print $output ;

./BlackJoker Mini Shell 1.0