Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[Discipulus]: :=)
[johngg]: hippo Yes, that's a cracker :-D
[Discipulus]: hippo take a look at Re^2: Cookie->fetch problem

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-05-26 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?