![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Making a matchby Anonymous Monk |
on Apr 12, 2003 at 12:52 UTC ( #250050=note: print w/replies, xml ) | Need Help?? |
my @list = (10,11,12,13,14,15,17,18,22,23,24,25,26,27,28,29,30,31,32,33,34,35); if (grep $_ == $x, @list) { print "Found $x\n"; }
In Section
Seekers of Perl Wisdom
|
|