Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: List::MoreUtils before, after and ... between?

by tobyink (Abbot)
on Feb 21, 2012 at 15:04 UTC ( #955330=note: print w/replies, xml ) Need Help??


in reply to List::MoreUtils before, after and ... between?

I don't know if this counts as better or worse...

@list = qw<eval DBIC::3 DBIC::2 DBIC::1 MyApp::3 MyApp::2 MyApp::1 Da +ncer::3 Dancer::2 Dancer::1>; $begin = 1 + last_index { /^(DBIC|eval)/ } @list; $end = (-1) + first_index { /^Dancer/ } @list; @foo2 = @list[ $begin .. $end ]; say for @foo2;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955330]
help
Chatterbox?
[Eily]: nope, Nodelet Settings doesn't let you move the XP Nodelet, CSS might
[marinersk]: That would mitigate the distraction/jangle issue, but then the information wouldn't be easy to find when it is populated. Plus, I don't currently see a way to move it, but I'm not done poking around on that point yet.
[marinersk]: Ah, you beat me to it.
[LanX]: as long as he has votes left, the nodelet remains

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-05-29 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?