GIF89a;
Direktori : /usr/share/doc/perl-IO-Compress-2.061/compress-zlib/ |
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 ;