Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 scrutinizing the Monastery: (10)
As of 2014-07-10 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls