> ....but the here doc doesn't parse.  Can someone please take two
> nanoseconds to point out the obvious?

Try this:

  print(<<-EOF)
    blah blah blah
  EOF

Lessons:
 - enclose <<-EOF in brackets; don't wrap entire doc in brackets
 - start with simple end-document-marker, then work your way up
   if you want to
 - don't use quotes on document marker

The first point is probably the only thing that matters in your case.  I
listed the others because you should try the simple things to eliminate
possible causes of error.

Gavin