I'm attempting to open up and grep a gzipped log file, but can't seem to ever get it to work.
Currently I have:
open (FILE, `gunzip -dc /usr/local/apache/logs/access.log.1.gz | grep
+"dd/Mon/yyyy" |`) or die "Couldn't open gunzip pipe ($!)\n";
# massive substitutions and DBI Calls
and get a "Couldn't open gunzip pipe (No such file or directory)" error. When I remove the grep call, I get an "Couldn't open gunzip pipe (File name too long)" error.
Any ideas on what I'm doing wrong?