On Apr 3, Hans Holtan said:
>I don't know if this is too general for your purposes, but this
>should look through a whole file and find anyplace that the word
>"running" appear in three consecutive lines.
Actually, the /g switch there might make it break; I'd remove it.
> ($all_
Hi Lance,
I don't know if this is too general for your purposes, but this
should look through a whole file and find anyplace that the word
"running" appear in three consecutive lines.
open (INFILE, "+;
for (0 .. ($#all_lines-2)){
if (
($all_lines[$_] =~ m/running/gi) a
Lance Prais wrote:
>
> I am using the following code to parse through a log file and match words on
> two sequential lines. I would like to add some code to it to check three
> sequential lines. I have tried several things but with not luck. Could
> someone please take a look at the code at let
I am using the following code to parse through a log file and match words on
two sequential lines. I would like to add some code to it to check three
sequential lines. I have tried several things but with not luck. Could
someone please take a look at the code at let help me with this.
Thank yo