PerlMonks,
I am trying to weed html urls from a comment box and use this code. I seems to work in on web site but not another, though the code is identical. I got the m// operator from programming in Perl (O'Reilly, etc)
for this code:
# If <html> or <a href= tags are present abort the message
if ($FORM {'comments'} = m//http|html|HTML|A HREF|a href/i)
{ &html_message;
}
I got this error message:
Bareword found where operator expected at anth-com.pl line 75, near "m
+//http"
syntax error at anth-com.pl line 75, near "m//http"
Execution of anth-com.pl aborted due to compilation errors.
Any help would be appreciated.
David