# @array and @numbers both contain numbers. if (defined ($array[0])) { foreach my $num (@numbers) { if ($array[0] == $num) { print "FOUND
"; } } }