in reply to HERE document string terminator error
What moritz said.
Nonetheless you might check for trailing whitespace behind the END terminator, which is an easy way to trigger your error.
Update: Oops, heavy delay on cross post with 1Nf3.
In Section
Seekers of Perl Wisdom