Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: A way to avoid repeated conditional loops

by Anonymous Monk
on Aug 24, 2011 at 16:27 UTC ( [id://922147]=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^5: A way to avoid repeated conditional loops

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2025-11-16 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.