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.
In reply to Re: Re: search for vertical bars
by mfriedman
in thread search for vertical bars
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |