Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: bareword error

by Bloodrage (Monk)
on Mar 14, 2008 at 04:15 UTC ( [id://674144]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://674144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found