Well not clearly phrased in the OP but at least the way the example was coded!
But maybe that's the real bug???
Please notice the word "between" in this thread's title.
> I rejected using 'grep' at all
Maybe you mean mean "grep w/o reverse" ?
DB<130> @list= ("a".."c","DBIC","A".."C","DANCER","a".."c") => ("a", + "b", "c", "DBIC", "A", "B", "C", "DANCER", "a", "b", "c") DB<131> reverse grep { not /DBIC/ .. 1 } reverse grep { not /DANCE +R/ .. 1 } @list => ("A", "B", "C") DB<132> reverse grep { not /DBIC/ .. 1 } reverse grep { not /NONSE +NSE/ .. 1 } @list => ("A", "B", "C", "DANCER", "a", "b", "c")
... or maybe not ?
Personally, I reject posting solutions for every possible interpretation of a poorly phrased question.
Human discussions are an iterative process.
Cheers Rolf
In reply to Re^3: List::MoreUtils before, after and ... between? ("simple")
by LanX
in thread List::MoreUtils before, after and ... between?
by Boldra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |