Ok, I just learned PERL, oh, two days ago so excuse me if this question sounds idiotic. I'm making a cgi script and recently I've come across a very annoying problem with the print <<SOMETAG; command. When I run the script with the -w command, I get an error saying that it can't find the string terminator before EOF. Well here's an example:
#!/usr/local/bin/perl
print "Content-type:text/html\n\n";
print <<END;
<html>
<body>
Bla bla bla
</body>
</html>
END
When run I get the error: Can't find string terminator "END" anywhere before EOF at line 5. What's up with that? Why does it report EOF at line 5? I've used this print command before in other scripts with no problem and I can't figure out what the difference is between now and then. I've also got some scripts that use this print command several times and then the error is only reported with the last instance of the command. Is it just me or is this wierd? I don't know much about this language but I think that the above example should run fine.