in reply to Re^2: extract last 1 min log and find a string
in thread extract last 1 min log and find a string

Hi Dude, I just copied an extra "}", why not fix it at your end?
  • Comment on Re^3: extract last 1 min log and find a string

Replies are listed 'Best First'.
Re^4: extract last 1 min log and find a string
by poj (Abbot) on Jul 24, 2017 at 20:19 UTC
    my $count = 0; # not $count == 0
    while (defined($line = $bw->readline)) { chomp $line; if ($line =~ /$target/) { # why target ? print "found\n"; $count = 4; last; # <-- add } }
    poj
Re^4: extract last 1 min log and find a string
by marto (Cardinal) on Jul 25, 2017 at 09:26 UTC