Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by linuxkid (Sexton)
on Jun 22, 2012 at 21:44 UTC ( [id://977901]=note: print w/replies, xml ) Need Help??


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

Try using the modern "smart match" operator:
if ( $tofind ~~ @in ) . . .

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-19 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found