Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570037]
help
Chatterbox?
[Discipulus]: silly one: can i dump all CORE functions?
[Corion]: Hmm - print for keys %CORE:: maybe?
[Corion]: Hm - nope, that only gives me GLOBAL:: as entry. Maybe you can't ...
[Discipulus]: just got GLOBAL::

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-05-23 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?