in reply to Why do here-docs have to end with a newline, not EOF?
Why is this?Because The Free Manual says so. According to perlop (search for <<EOF):
If the terminating identifier is on the last line of the program, you must be sure there is a newline after it; otherwise, Perl will give the warning Can't find string terminator "END" anywhere before EOF....
In Section
Seekers of Perl Wisdom