Re: checking an array of numbers for a particular value
by
TedPride
on
Aug 28, 2006 at 19:59 UTC
(
replies
)
http://qs321.pair.com?node_id=570037
in reply to
checking an array of numbers for a particular value
print "Found!" if grep {$_ == $val} @arr;
In Section
Seekers of Perl Wisdom