Do you know where your variables are? | |
PerlMonks |
Re: Infamous "Premature end of script headers"by NetWallah (Canon) |
on Dec 14, 2021 at 17:49 UTC ( [id://11139617]=note: print w/replies, xml ) | Need Help?? |
"perl scripts do not work" is a very poor problem description.
There are plenty of pitfalls trying to get your first CGI script to work - you have the right approach by printing headers first - but you need to check - are the scripts getting loaded by the web server ? executable ? cgi framework loaded ? The answers are in the web server error logs. UPDATE: - Looks like you are missing the shebang line. Here is a working script:
"If you had better tools, you could more effectively demonstrate your total incompetence."
In Section
Seekers of Perl Wisdom
|
|