Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Why do here-docs have to end with a newline, not EOF?

by Cody Pendant (Prior)
on May 11, 2008 at 23:37 UTC ( #686004=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1. print <<ENDHERE;
    2. foo bar baz
    3. ENDHERE
    
  2. or download this
    1. print <<ENDHERE;
    2. foo bar baz
    3. ENDHERE
    4.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-08-13 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (68 votes). Check out past polls.

    Notices?