Second, you should quote $company in your regex. Like so..
That makes sure that it looks at what's in $company as all text. If you just put $company there, if there are any special characters, it will treat them as those special characters.if ($content =~/\Q$company\E/is){
Hope this helps..
Rich
In reply to Re: If statement in Foreach loop
by rchiav
in thread If statement in Foreach loop
by cdherold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |