my $position; for ($position = 0; $position <= $#@array; $position++) { if ($array[$position] eq $value) { last; }#if }#foreach