Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: CGI && tables nested within tables.

by Macphisto (Hermit)
on Dec 29, 2000 at 01:14 UTC ( [id://48692]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI && tables nested within tables.
in thread CGI && tables nested within tables.

Thanks Chipmunk,
I was struggling with that and just didn't look at it as one giant print statement thus didn't realize it wouldn't have finished until the ';' I'm very impressed that you caught that so quickly. You answered in mere minutes.
p.s. You mentioned running the cgi at the command line. Are you referring to 'perl -wcT foo.cgi' or something else?

Everyone has their demons....

Replies are listed 'Best First'.
Re: Re: Re: CGI && tables nested within tables.
by chipmunk (Parson) on Jan 02, 2001 at 23:42 UTC
    Yes, you can run your script from the command line to see what output it produces, including the HTTP headers which the browser doesn't show you. Something like: `perl -wT foo.cgi`. Use -c to make sure the script compiles, then leave it off to see what output you get.

    Because CGI scripts get their input from the environment and standard input, you can run your script from the command line with all the data it would get from the web server. For example, you can set QUERY_STRING in your shell's environment to 'id=7&name=bob'.

    The CGI module provides a debug mode when run under the shell to make this easier. Run the script from the shell, and you can include parameters and values on the command line or pass them through standard input. (See the DEBUGGING section of the manpage for more details.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found