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
In reply to search for exact string by gfarhat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |