Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: bareword error

by grep (Monsignor)
on Mar 13, 2008 at 23:40 UTC ( #674109=note: print w/ replies, xml ) Need Help??


in reply to bareword error

= is for assignment
=~ is a binding operator for regex's

A match regex needs to delimited by set of 2 symbols not 3.

if ($FORM {'comments'} =~ m/http|html|HTML|A HREF|a href/i)
Should fix it.
UPDATE: added comment about delimiters
grep
One dead unjugged rabbit fish later...


Comment on Re: bareword error
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2015-07-07 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls