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

Re^4: A way to avoid repeated conditional loops

by tinita (Parson)
on Aug 24, 2011 at 15:10 UTC ( #922132=note: print w/replies, xml ) Need Help??


in reply to Re^3: A way to avoid repeated conditional loops
in thread A way to avoid repeated conditional loops

hm, if I add no warnings "numeric"; to the flip-flop code, the output seems to be fine. output all lines after "alpha". at least that's how I understood the task.

Replies are listed 'Best First'.
Re^5: A way to avoid repeated conditional loops
by Anonymous Monk on Aug 24, 2011 at 16:27 UTC

    The OP code has an else condition on the match for alpha. That should execute for every line of the file except the 'alpha', regardless of before or after.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://922132]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2016-12-11 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (168 votes). Check out past polls.