in reply to Re^2: bareword error
in thread bareword error

Even further refined:
if ($FORM {'comments'} =~ m/http|html|a\s+href/i )
..as any number of, but more than one, whitespace characters are valid between a and href.

Replies are listed 'Best First'.
Re^4: bareword error
by ikegami (Patriarch) on Mar 14, 2008 at 04:48 UTC

    Now what about <a id="foo" href="...">...

    I would have mentioned \s+ if that's all that was needed.