Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Iteration condition...

by stiller (Friar)
on Mar 31, 2008 at 14:55 UTC ( #677550=note: print w/ replies, xml ) Need Help??


in reply to Iteration condition...

Update: Moritz is right, it does something else entirely. rhesa's flipflop is a good solution

for(@Input) { do_this($_) and next if /$Start/; do_that($_) if /$Finish/; }


Comment on Re: Iteration condition...
Download Code
Re^2: Iteration condition...
by moritz (Cardinal) on Mar 31, 2008 at 14:59 UTC
    That's different from the original in that it doesn't do the same as the previous iteration if there is no match at all.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-08-01 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls