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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-05-23 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?