foreach (@array) { push @other, $_ if some_condition; }