in reply to Re^8: seeking advice on loops
in thread seeking advice on loops
So, the question is ... what is it that you're trying, what are the exact error messages you're getting, and, if possible, what do you think the problem is? (I would suggest this going into a new thread at this point - almost no one but me will read your response to this at this point because of the high number associated with the "Re" in the subject line ;-})
As to your style question: by consistancy, I mean that inside a single block, each line should line up on the left. Don't indent a print statement by 2 spaces, and then the following statement indent by 4. And then a few lines later, go back to only 2 spaces. Each block should indent by the same amount so that similarly-indented lines of code should be buried in similarly-deep blocks. Bad:
Good:if ($something) { print "here\n"; $count++; call_something(); print "here2\n"; get_input(); }
Hope that helps.if ($something) { print "here\n"; $count++; call_something(); print "here2\n"; get_input(); }
|
|---|