in reply to Re^5: Perl Regex
in thread Perl Regex

Yes, that is exactly where your problem is. You are not matching the whole line in the log-file, but only a part of it.

Perhaps you have to rethink your approach and not split the log-lines by spaces, but craft individual regexes for each field.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James