in reply to Re: flip-flop flop
in thread flip-flop flop
Better (but untested):
Note that doesn't evaluate the condition ($_ == 3) after finding a match.my @y = do {my $z = 0; grep {$z ||= $_ == 3} @x};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: flip-flop flop
by kcott (Archbishop) on Mar 30, 2012 at 11:01 UTC |