in reply to regex log file too many results
First, what's with the double negation?
can be written much more clearly asunless($_ !~ /$get/) { printf STDERR ("String = $_ \n"); }
if (m/$get/) { printf STDERR ("String = $_ \n"); }
And then it seems to me like you're setting $get to an empty string (or maybe a whitespace character) somewhere else in your code, because your logfile shows the program matching on that.
Hope that helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex log file too many results
by minixman (Beadle) on Nov 14, 2005 at 10:41 UTC | |
by tirwhan (Abbot) on Nov 14, 2005 at 10:52 UTC |