gfarhat has asked for the wisdom of the Perl Monks concerning the following question:
my $toFind="String"; foreach $line (@list){ $_=$line; if(m/$line1/i){ print "$line\n"; }
The thing is that i want to get all line where the exact string "String" exists. And i dont want to print lines where String.c or String.o exist
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search for exact string
by stiller (Friar) on Mar 27, 2008 at 11:57 UTC | |
by amarquis (Curate) on Mar 27, 2008 at 13:01 UTC |