in reply to If statement in Foreach loop
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: If statement in Foreach loop
by tilly (Archbishop) on Aug 18, 2001 at 21:15 UTC |