Re: parsing gzipped log files

2005-01-19 Thread Wiggins d Anconia
> 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

RE: parsing gzipped log files

2005-01-19 Thread Thomas Bätzler
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

RE: parsing gzipped log files

2005-01-19 Thread Bob Showalter
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

Re: parsing gzipped log files

2005-01-19 Thread Chris Devers
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