Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: matching elements in a list in a logical OR fashion

by Anonymous Monk
on Jun 16, 2004 at 15:21 UTC ( [id://367268]=note: print w/replies, xml ) Need Help??


in reply to matching elements in a list in a logical OR fashion

my @array = qw( foo bar baz ); print grep(/^$bigstring$/, @array)? "match" : "no match","\n"; try that.
  • Comment on Re: matching elements in a list in a logical OR fashion

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-20 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found