Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Your Favorite Options for Perltidy

by ambrus (Abbot)
on Nov 06, 2005 at 10:42 UTC ( #506096=note: print w/replies, xml ) Need Help??


in reply to Re^2: Your Favorite Options for Perltidy
in thread Your Favorite Options for Perltidy

An editor can help there too: I jump to the EOF where the error appears, insert a closing brace, and jump to the matching brace.

However, an even more efficent way to find the missing braces is when the interpreter guesses its place from the indentation of the code (even though the indentation has no semantical meanning). The MzScheme interpreter can do this, and usually guesses right. (I hope perl6 will be able to do this too.) If, however, you reformat the code with an indenter, then the indents will follow the braces you've put there, not the way you think the code should be indented, so then indentation can't provide a clue to the interpreter.

  • Comment on Re^3: Your Favorite Options for Perltidy

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-05-30 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?