Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Syntax error in using do-until loop: How can I fix it?

by grumbert (Scribe)
on Jul 16, 2012 at 10:24 UTC ( #981999=note: print w/ replies, xml ) Need Help??


in reply to Syntax error in using do-until loop: How can I fix it?

From a quick glance it looks like you are missing a } before the until. The } you have before until closes the foreach loop rather than the do {} . The } after exit is one too much.

I would strongly recommend using a proper indentation/bracket style, it tends to make reading and debugging code a bit easier :)


Comment on Re: Syntax error in using do-until loop: How can I fix it?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-10-26 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (153 votes), past polls