my $found; @statusoption = grep { $found++ if $_ eq $status; $found } @statusoption;