for $item (@list) { next if $item == 2 or $item == 4; ... rest of processing .. }