Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: checking an array of numbers for a particular valueby TedPride (Priest) |
on Aug 28, 2006 at 19:59 UTC ( [id://570037]=note: print w/replies, xml ) | Need Help?? |
print "Found!" if grep {$_ == $val} @arr;
In Section
Seekers of Perl Wisdom
|
|