in reply to Grep question

First off, instead of @statusoption[$i] (which returns an array slice) please use $statusoption[$i] which returns an array element. Secondly, you could use grep to set a status flag once you've found what you're looking for:
my $found; @statusoption = grep { $found++ if $_ eq $status; $found } @statusoption;