Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-09-25 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (279 votes). Check out past polls.

    Notices?