Read what ferrency said, but (forgive me Father for I have sinned) forget what the Anonymous Monk wrote in points two and three.
always start out your scripts with a "Content-type: <something>\n\n" line.If you include that in your script, it means you are not using the CGI module. Trust me on this, if you need to use Hypermart.net to host your site, you shouldn't be trying to do CGI without this module. People are probably going to be using because they're not familiar with setting up their own domain or perhaps can't afford one. Either way, this implies (to me) a lack of experience in this area. CGI is a protocol that is fraught with pitfalls for the unwary. Perl UberGurus get tripped up with cgi problems. You're not going to outthink them (no offense). Learn the CGI module well and you will be richly rewarded (in terms of the frustrations you won't experience from CGI problems).
If a script runs in a command-line window, then it should also work as a cgi.Well, kinda sorta. If you're not using the aforementioned module, you're probably not passing form data to your script from the command line which virtually guarantees that you'll have problems running it from there.
Cheers,
Ovid
In reply to (Ovid) Re: getting a cgi script working
by Ovid
in thread getting a cgi script working
by mhorvat42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |