I know that I am doing something fundamentally wrong with this code, but I have tried it at Uni and at home, both with the same error:
Can't find string terminator "END_of_Multiline_Text" anywhere before EOF at bloodyprogram.pl line 3.
The thing is, this code it straight from the Learning Perl book. Can someone please tell me what is going wrong! I'm tearing my hair out!!
Code:
#!/usr/local/bin/perl -w
print <<END_of_Multiline_Text;
Content-type: text/html
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<H1>Greetings</H1>
</BODY>
</HTML>
END_of_Multiline_Text
The perl path is correct BTW.