With PerlIO (default in Perl 5.8+) you can use the PerlIO::gzip layer.
Now everything you print will be gzipped and shoved into the file.use PerlIO::gzip; open local(*STDOUT), '>:gzip', $filename or die $!;
Your "FILE=filename" snippit looks fishy, no variable sigils.
After Compline,
Zaxo
In reply to Re: Stream data from application to Gzip
by Zaxo
in thread Stream data from application to Gzip
by TeraMarv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |