in reply to Re^2: List::MoreUtils before, after and ... between? ("simple")
in thread List::MoreUtils before, after and ... between?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: List::MoreUtils before, after and ... between? (posting solutions for every possible interpretation)
by tye (Sage) on Feb 22, 2012 at 04:31 UTC | |
by Boldra (Curate) on Feb 22, 2012 at 08:42 UTC | |
by LanX (Saint) on Feb 22, 2012 at 14:05 UTC |