Tip #1 from the Basic debugging checklist: diagnostics
If you're getting this error from a here-document, you may have included unseen whitespace before or after your closing tag or there may not be a linebreak after it.
Remove the space before the ending HTML:
print "Content-type: text/html\n\n"; print <<HTML; <html> <head> <title>A Simple Perl CGI</title> </head> <body> <h1>A Simple Perl CGI</h1> <p>Hello World</p> </body> HTML exit;
See also Troubleshooting Perl CGI scripts
In reply to Re: I need help with my first CGI
by toolic
in thread I need help with my first CGI
by Hramyzn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |