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 get at the original text anyway, so you're not really going to get around needing gzip (or more generally, the gzip library that Perl would use). With that in mind, your choices are basically: * uncompress, then parse: gunzip log.gz && grep foo log * the same, in one step: zgrep goo log.gz * write a Perl program to do the same Unless you're doing some complex parsing, zgrep is probably the easiest way to go about this. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>