Ok, so this does what I want:
Although this is not particularly neat. Is there a better way?perl -lwe '$x = 1; print join " ", grep { scalar($x++../D/) } qw(A B C + D E F)' # prints: # A B C D
In reply to Re^2: Flip-flop won't DWIM
by wu-lee
in thread Flip-flop won't DWIM
by wu-lee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |