in reply to alternative text delimiters

I think you just forgot to put ";" at the end of the first line. Your example:

print <<END Hello there! This is a test! END my $i;
Should be fixed here:

print <<END; Hello there! This is a test! END my $i;
Apprentice