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 ;)
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (124 votes),