Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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;


Comment on Re: List::MoreUtils before, after and ... between?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955330]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-09-24 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls