Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Here document construct problem

by artist (Parson)
on Feb 17, 2005 at 20:34 UTC ( #432079=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Here document construct problem
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://432079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-08 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls