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.