in reply to Re^2: Flip-flop won't DWIMin thread Flip-flop won't DWIM
This seems to work if you insist on using flip-flop:
$x = 1; print join " ", grep { $x..(($x=0) or /D/) } qw(A B C D E F); [download]