Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re (tilly) 2: CGI Help Guide

by tilly (Archbishop)
on Sep 04, 2001 at 00:21 UTC ( [id://109934]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI Help Guide
in thread The CGI Help Guide

You will find your code easier to read if you pick a consistent indentation style and stick to it. What exactly you pick, hanging vs inline braces, etc doesn't so much matter as long as the indent is in the range 2-4 spaces and the style is consistent. If you do that then it is possible to see the logical structure of the code at a glance, which greatly simplifies understanding it.

Also the better way to do the above is to have a logging function that you pass messages to. By default it would do nothing, but turn on a flag and you get a useful debugging trace out...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-19 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found