Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-19 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found