Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: checking an array of numbers for a particular value

by TedPride (Priest)
on Aug 28, 2006 at 19:59 UTC ( #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;


Comment on Re: checking an array of numbers for a particular value
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-12-28 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls