> Hi all,
> can anyone address me to a Perl module/function to parse gzipped log
files without uncompressing them via gzip/gunzip?
> Thanks
>
> Mariano
>
Compress::Zlib is my standard way to do this. If all you want to do is
grep them then zgrep will be faster as the others have pointed out. I
d
Mariano Cunietti <[EMAIL PROTECTED]> asked:
> can anyone address me to a Perl module/function to parse
> gzipped log files without uncompressing them via gzip/gunzip?
You have to uncompress them somehow, but you don't have to
uncompress them to a file. I regularly use code like this:
if( $file
Mariano Cunietti wrote:
> Hi all,
> can anyone address me to a Perl module/function to parse gzipped log
> files without uncompressing them via gzip/gunzip? Thanks
This search will turn up some modules:
http://search.cpan.org/search?query=gzip&mode=module
You might also just read from the output
On Wed, 19 Jan 2005, Mariano Cunietti wrote:
> can anyone address me to a Perl module/function to parse gzipped log
> files without uncompressing them via gzip/gunzip?
It's not the solution you asked for, but have you zgrep / zcat ?
Any Perl solution is going to have to decompress the file to g