The match operator expects its pattern to be surrounded by delimeters, usually m// (ie your pattern needs to be between the slashes). Another problem you've got, is that if the match is not bound to an expression, it will match against $_. You should use =~ to bind the match to an expression.
So, you need to change your if to something like
if ($FORM {'comments'} =~ m/http|html|HTML|A HREF|a href/i )
In reply to Re: bareword error
by FunkyMonk
in thread bareword error
by batmanor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |