Forum Moderators: coopster & phranque
@vitem = ("1","2","3","4"); $citem = 0;
for my $vitem (@vitem) { if ($item == $vitem) { $citem++; } }
if ($citem == 0) { print "did not find";} else {print "found";}
This seems to come up with found no matter what I put.