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

Re^2: Why do here-docs have to end with a newline, not EOF?

by ikegami (Patriarch)
on May 12, 2008 at 01:05 UTC ( [id://686015]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -e"print qq{print <<ENDHERE\nabc\nENDHERE}" > test.pl
    
    ...
    abc
    
    >
    
  2. or download this
    $ perl -e'print qq{print <<ENDHERE\nabc\nENDHERE}' > test.pl
    $ perl test.pl
    ...
    $ perl test.pl
    abc
    $
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found