Stephen Reese wrote:

Dave wrote:

I think the problem might be with your regular expression and not $x.

If your regular expression does not match the current line then every line
will be skipped.

What does the line that is being processed look like?

Here are two lines from the log file.

Sep 24 00:41:13 172.16.2.1 184512: 3725router: Sep 24 04:56:58:
%IPS-4-SIGNATURE: Sig:3051 Subsig:1 Sev:4 TCP Connection Window Size
DoS [71.7.229.205:4693 -> 68.156.62.111:49613]
Sep 23 21:11:58 172.16.2.1 180743: 3725router: Sep 24 01:27:10:
%IPS-4-SIGNATURE: Sig:2157 Subsig:1 Sev:4 ICMP Hard Error DoS
[91.97.234.152:0 -> 68.156.62.111:0]

It appears that there is a space (' ') character at the end of the pattern where there should be a ']' character.



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to