Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: checking an array of numbers for a particular value

by TedPride (Priest)
on Aug 28, 2006 at 19:59 UTC ( [id://570037]=note: print w/replies, xml ) Need Help??


in reply to checking an array of numbers for a particular value

print "Found!" if grep {$_ == $val} @arr;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found