mjn has asked for the wisdom of the Perl Monks concerning the following question:
And i have tried this:use Compress::Zlib; my $gz = deflateInit() || warn "Could not create zlib deflation stream +: $!\n"; ($out,$status) = $gz->deflate("$system_config{sendmail_log_dir}$_") || + warn "Cannot deflate and open $system_config{sendmail_log_dir}$_: $! +\n"; open (LOGFILE, $out) || warn "Cannot open deflated logfile for reading +: $!\n";
But neither seems to read the file at all successfully. So, what is my (perl) problem here?use Compress::Zlib; my $gz = deflateInit() || warn "Could not create zlib deflation stream +: $!\n"; open (LOGFILE, $gz->deflate("$system_config{sendmail_log_dir}$_")) || +warn "Cannot open deflated logfile for reading: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using compress::zlib output as a filehandle
by iburrell (Chaplain) on Mar 21, 2003 at 17:15 UTC | |
|
Re: Using compress::zlib output as a filehandle
by mjn (Acolyte) on Mar 21, 2003 at 17:41 UTC | |
by Thelonius (Priest) on Mar 21, 2003 at 17:52 UTC |