in reply to Re^2: regular expression help
in thread regular expression help

If you want to look up the errors in the logfile for context later on, it would be handy to also print out $. which will contain the line number of the logfile you are currently reading.