#!/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 ;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
filtdef | File | 437 B | 0644 |
|
filtinf | File | 470 B | 0644 |
|
gzcat | File | 495 B | 0644 |
|
gzgrep | File | 463 B | 0644 |
|
gzstream | File | 314 B | 0644 |
|