Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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 chilling in the Monastery: (4)
As of 2024-04-18 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found