in reply to Re^2: Flip-flop won't DWIM
in thread Flip-flop won't DWIM

Actually, that doesn't, but this does:
perl -lwe '$x = 0; print join " ", grep { scalar(!$x++../D/) } qw(A B + C D E F)' # prints: # A B C D