Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: search for vertical bars (Russ was bored)

by Russ (Deacon)
on Jul 18, 2002 at 00:04 UTC ( [id://182653]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://182653]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2025-06-15 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.