See the recent node
use of string terminator within a subroutine for the same question about here-documents. To summarize:
- From perldoc perldata: "The terminating string must appear
by itself (unquoted and with no surrounding whitespace) on
the terminating line."
- this is a FAQ