Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to find out if X is an element in an array?

by mascip (Pilgrim)
on May 22, 2013 at 12:06 UTC ( [id://1034726]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if any(@ingredients) eq 'flour';
    
  2. or download this
    if @ingredients->contains('flour');
    
  3. or download this
    if any { $_ eq 'flour' } @ingredients
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found