in reply to Why do here-docs have to end with a newline, not EOF?
Don't know why that's the case, but otherwise there's no problem having a here document at the end of your program.