Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 about the Monastery: (10)
As of 2014-08-20 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (107 votes), past polls