http://www.perlmonks.org?node_id=432079


in reply to Here document construct problem

"Original Script" has an extra space character at the end (after END_OF_PRINT). Remove that character and it should work fine.

Replies are listed 'Best First'.
Re^2: Here document construct problem
by hok_si_la (Curate) on Feb 17, 2005 at 20:44 UTC
    Artist,

    I removed the trailing spaces, and I am still getting the warning. I will update my scratchpad with the new code.

    hok_si_la

      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