in reply to Can't find string terminator "end_of_html" anywhere before EOF at jsdisp.cgi line 37.

I always put my end_of_html in all caps, it helps to find back the end of the here document.

You use indentation in your here document. Your text will come out with leading spaces. If you want to get rid of the leading spaces use this:

($html = <<'END_OF_HTML') =~ s/^\s+//gm; Content-type: text/html <html><head></head> <body> END_OF_HTML print $html;
  • Comment on Re: Can't find string terminator "end_of_html" anywhere before EOF at jsdisp.cgi line 37.
  • Download Code