Just skip over the other ids
see chomp# chop $reqid; # use chomp chomp $reqid;
pojwhile (<IN>) { chomp; next unless /Task:id=(\d+)/; my $taskid = $1; next unless ($taskid eq $reqid); ## <-- add my (undef,$timestamp,undef) = split /\s+/,$_,3; ..
In reply to Re^12: Log Parsing
by poj
in thread Log Parsing
by piyushmnnit06
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |