in reply to Re: Here docs throwing syntax error - can't find string terminator
in thread Here docs throwing syntax error - can't find string terminator

You used 'END' where you should have used "END".

print <<END, <<'END', <<"END"; abc\tdef END abc\tdef END abc\tdef END

outputs

abc def abc\tdef abc def

<<END is equivalent to <<"END" and not equivalent to <<'END', so the OP needs <<"        END" rather than <<'        END'.