my $toggle = 0; while () { next if $toggle ^= 1; print; }