Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by ikegami (Pope)
on May 12, 2008 at 01:05 UTC ( #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
Node Status?
node history
Node Type: note [id://686015]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-08-09 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (54 votes). Check out past polls.

    Notices?