Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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.


Comment on Re^4: A way to avoid repeated conditional loops
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-07-14 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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








    Results (252 votes), past polls