in reply to dumb question on multiline text

Have to agree with toolic (I did, initially, and then found my error, below) -- even with strict habitually added (and highly recommended).

However: if you're building a model for actual use with a server and browser, you're going to need to add two newlines to your Content-type... line, thusly

Content-type: text/html\n\n

or, two returns:

#!/usr/bin/perl use strict; use warnings; #826261 print <<END_of_Multiline_Text; Content-type: text/html <HTML> <HEAD>...

Update: But maybe he did what I did and inadvertently added a trailing newline after OP's code. Deleting it gives OP's error; hence, ++ almut

At least in my case, this argues for moving the trailing semi-colon from the line print <<END_of_Multiline_Text; to the line following the end of the heredoc, thus:

#!/usr/bin/perl use strict; use warnings; #826261 # alt re content-type: "Content-type: text/html (followed by two bla +nk lines) # if no newline after 19, perl reports "Can't find string terminator " +END_of_Multiline_Text" anywhere before EOF at 826261.pl line 9." print <<END_of_Multiline_Text Content-type: text/html\n\n <HTML> <HEAD> <TITLE>Hello World</TITLE> </HEAD> <BODY> <H1>aaaaaaalo!</H1> </BODY> </HTML> END_of_Multiline_Text ;