#!/usr/bin/perl use strict ; use warnings ; use Compress::Zlib ; binmode STDOUT; # gzopen only sets it on the fd #my $gz = gzopen(\*STDOUT, "wb") my $gz = gzopen('-', "wb") or die "Cannot open stdout: $gzerrno\n" ; while (<>) { $gz->gzwrite($_) or die "error writing: $gzerrno\n" ; } $gz->gzclose ;
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 |
|