and here...$logfile="log.txt";
Can you see?if ($logfile =~ /$error/i) {
I think you want:
while (my $line = <LOG>) { if ($line =~ /$error/i) { etc....
Cheers,
Darren :)
In reply to Re^4: trouble parsing log file...
by McDarren
in thread trouble parsing log file...
by perl_geoff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |