An error occurred prior to the execution of the line that prints your headers. The server's web error log will reflect what error that is.
Possibilities include the server not having permission to execute the script, the script residing in a directory that isn't set up for CGI, the script has a dependancy on a library or module you created that hasn't been set up with proper permissions, or any of a number of other possibilities.
Another possibility is improper line endings (something that is OS dependant).
Basically I can only provide speculation, and may be way off base. If you don't check the server's error log you'll never be sure. Your webserver docs will tell you where to look for CGI errors. Maybe you don't even have CGI enabled on your server.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.