in reply to Re: Flip-flop won't DWIM
in thread Flip-flop won't DWIM
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Flip-flop won't DWIM
by akho (Hermit) on May 21, 2009 at 16:15 UTC | |
|
Re^3: Flip-flop won't DWIM
by wu-lee (Beadle) on May 21, 2009 at 16:13 UTC | |
|
Re^3: Flip-flop won't DWIM
by ikegami (Patriarch) on May 21, 2009 at 16:57 UTC |