in reply to searching using a scalar as pattern
I am relativley new to Perl so that may not work, but I thought I would throw it out there.my @matched_line; open FILE, "<$inputFileName" or die "$!\n"; while (<FILE>) { push @matched_line, $_ if (/$name/); } close FILE;
|
|---|