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
In Section
Seekers of Perl Wisdom