Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: search for vertical bars

by mfriedman (Monk)
on Jul 17, 2002 at 22:56 UTC ( #182628=note: print w/replies, xml ) Need Help??


in reply to Re: search for vertical bars
in thread search for vertical bars

if(param('des') || param('title') =~ m/\|/g){ &inerror("You can't include |'s in your text"); }

That is incorrect. You cannot do a regexp match on two values like that. You are performing a match on what (param('des') || param('title')) evaluates to.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2021-06-18 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (89 votes). Check out past polls.

    Notices?