Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: CGI script gives "internal server error"

by Crackers2 (Parson)
on Mar 03, 2009 at 21:49 UTC ( [id://747911]=note: print w/replies, xml ) Need Help??


in reply to Re^2: CGI script gives "internal server error"
in thread CGI script gives "internal server error"

I think you need a newline after the END_OF_HTML, otherwise perl won't recognize it as the heredoc terminator.

Replies are listed 'Best First'.
Re^4: CGI script gives "internal server error"
by manish.rathi (Acolyte) on Mar 04, 2009 at 00:38 UTC
    Thanks, you are right. After putting new line after the "END_OF_HTML" , the script is working fine.
Re^4: CGI script gives "internal server error"
by Anonymous Monk on Aug 17, 2017 at 21:13 UTC
    This worked for me. Could't get cgi script with here doc to work (500 error - put new line after the EOF identifier, and it worked.
Re^4: CGI script gives "internal server error"
by manish.rathi (Acolyte) on Mar 04, 2009 at 00:30 UTC
    Thank you all guys. Problem is solved. I changed print command from "print <<END_OF_HTML" to print qq{ } and the script is working fine now. Now the question is why wd it not work with "END_OF_HTML" ?

Log In?
Username:
Password:

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

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

    No recent polls found