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.
  • Comment on Re^3: CGI script gives "internal server error"

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" ?