http://www.perlmonks.org?node_id=182628


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.