in reply to String terminator problems.

all these monks here aren't as brilliant as me ;-)!
when you say
print <<' here is a here doc ';
the here doc rules say that you need a line terminating with ' here is a here doc ' without the quotes and you obviously don't have one. a space after the heredoc also helps here is a here doc