Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by ikegami (Pope)
on Feb 21, 2012 at 23:05 UTC ( #955406=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($seen_opening, $seen_data, $seen_closing);
    my @filtered =
    ...
            && !($seen_closing ||= /Dancer/)  # Find closing bound
          }
          @list;
    
  2. or download this
    my @filtered =
       grep { (/DBIC/ .. /Dancer/) && !/DBIC/ && !/Dancer/ }
          @list;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955406]
help
Chatterbox?
[LanX]: yes, test passed :)
[sierpinski]: woo hoo! you can go home for the day now
[Eily]: does this mean you'll give up the random prefix solution LanX?
[LanX]: yep, sorry ;(
[Eily]: such a fine and clever workaround though...
[LanX]: well even my random fingers have memory ...
[Eily]: you could have tried randomly swapping your fingers
[Eily]: enigma style
[choroba]: so it was you who typed the whole phrases?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2017-03-28 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (331 votes). Check out past polls.