while() { next if $. % 2; # skip odd lines # do the processing }