in reply to List::MoreUtils before, after and ... between?
How about something along these lines?
shift @array while($array ~~ /DBIC/);
pop @array while ($array[$#array] ~~ /Dancer/);
Well, obviously you can change the regex to match whatever you need.
You didn't mention that about the DBICs, that's a more difficult and messy problem.
It's probably going to be much more successful to look for what you do want, rather than what you don't, so I'd design a regex to do just that ;)
There is no Extraterrestrial life
There aren't any suitably capable Extraterrestrials
Interstellar travel is too difficult
We're too uncool / not worth the trouble
What do you mean they haven't visited?
Results (501 votes). Check out past polls.