Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 musing on the Monastery: (4)
As of 2016-06-25 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.