in reply to bareword error
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 )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: bareword error
by ikegami (Patriarch) on Mar 13, 2008 at 23:34 UTC | |
by Bloodrage (Monk) on Mar 14, 2008 at 04:15 UTC | |
by ikegami (Patriarch) on Mar 14, 2008 at 04:48 UTC | |
|
Re^2: bareword error
by Anonymous Monk on Mar 14, 2008 at 18:38 UTC |