in reply to Re: Here document construct problemin thread Here document construct problem
Can you run this code (via the shell/Command Prompt/Run)
perl -nle "print qq(Check line: $.), if (m/print <<ENDOFHTML;\s+$/ or (m/^(\s*)ENDOFHTML(\s*)$/ and ($1 or $2)))" filename