in reply to flip-flop flop
use List::MoreUtils qw/firstidx/; my $from = firstidx {$_ eq $look_for} @array; return @array[$from+1..$#array];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: flip-flop flop
by AnomalousMonk (Archbishop) on Mar 30, 2012 at 11:27 UTC |