in reply to match word on line - match word on another line - print lines
Hi, just try this with created file
open(IN, "d:\\temp.txt") || die "Cannot open file"; while (<IN>) { if ($_ =~ m#url Title: (.*?) invalid#gsi) { push(@arr, $1); } } $"="\n"; print "@arr";
Regards,
Gubendran
|
|---|