http://qs321.pair.com?node_id=182653


in reply to search for vertical bars

Just because I cringe at duplicated code (and my duplicate threshold is very low ;-)

Nothing at all wrong with DamnDirtyApe's answer... Like the title says, I was bored and just had to post.

if (grep {/\|/} (param('des'), param('title')){ # at least one of them matched }

Russ
Brainbench 'Most Valuable Professional' for Perl