http://qs321.pair.com?node_id=1093920

Hramyzn has asked for the wisdom of the Perl Monks concerning the following question:

Hello guys, I've decided to try out the CGI and failed at the simplest possible example. I've found a simple Perl CGI "hello world" program but copy pasted the code to see what would happen and got an error. Also, I'm using Eclipse IDE with EPIC plugin. This is the code:

print "Content-type: text/html\n\n"; print <<HTML; <html> <head> <title>A Simple Perl CGI</title> </head> <body> <h1>A Simple Perl CGI</h1> <p>Hello World</p> </body> HTML exit;

As you see, it's as simple as it gets, but I get the error "Can't find string terminator "HTML" anywhere before EOF". There is HTML written right before "exit;" and I don't know what's wrong. Can anyone help me?