in reply to String terminator problems.

Your code works for me, with or without the quotes around 'EndHTML'.

I have heard that on Win32 you need a blank line after the marker for a "here documents" (although I'm on win32 and didn't need it).

By the way, I first thougth it wasn't working until I noticed the title in the brower; you have nothing in the <body>.