Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by moritz (Cardinal)
on Feb 21, 2012 at 15:00 UTC ( #955327=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use List::MoreUtils qw/first_index last_index/;
    use 5.010;
    ...
    my $from = last_index  { /DBIC/ }   @a;
    my $to   = first_index { /Dancer/ } @a;
    say for @a[$from + 1..$to - 1];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-10-25 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls