You could use grep to remove the elements you do not want from the list:
my @results = grep $expression, @input_list;
The expression will be evaluated for each element in the @imput_list (put into $_) and only the element where the experssion evaluates to true end up in @result.
hth
si_lence