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

Re: search for vertical bars

by Flame (Deacon)
on Jul 17, 2002 at 22:00 UTC ( #182601=note: print w/replies, xml ) Need Help??


in reply to search for vertical bars

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: search for vertical bars
by mfriedman (Monk) on Jul 17, 2002 at 22:56 UTC
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://182601]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-07-25 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?