in reply to List::MoreUtils before, after and ... between?
Not sure if I understand your problem completely, why not simply combining grep and flip-flop?
This should be close:
DB<134> @list= ("a".."c","DBIC","A".."C","DANCER","a".."c") => ("a", "b", "c", "DBIC", "A", "B", "C", "DANCER", "a", "b", "c") DB<135> grep { /DBIC/.. /DANCER/ } @list => ("DBIC", "A", "B", "C", "DANCER")
Cheers Rolf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: List::MoreUtils before, after and ... between?
by ikegami (Patriarch) on Feb 21, 2012 at 23:20 UTC | |
by LanX (Saint) on Feb 22, 2012 at 00:02 UTC | |
by Boldra (Deacon) on Feb 22, 2012 at 10:36 UTC | |
by ikegami (Patriarch) on Feb 22, 2012 at 00:12 UTC | |
by LanX (Saint) on Feb 22, 2012 at 00:17 UTC | |
by ikegami (Patriarch) on Feb 22, 2012 at 01:33 UTC | |
|
In Section
Seekers of Perl Wisdom