Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

here-document without interpolation (<<DELIMITER;)

by gmpassos (Priest)
on Jan 15, 2004 at 23:27 UTC ( #321707=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $data = <<DATAFOO;
    bla bla bla $globalvar
    DATAFOO
    
    print "$data\n" ;
    
  2. or download this
    bla bla bla
    
  3. or download this
    bla bla bla $globalvar
    
  4. or download this
    ## From perldiag:
    =item Use of bare << to mean <<"" is deprecated
    ...
    
  5. or download this
    $data = <<'DATAFOO';
    bla bla bla $globalvar
    DATAFOO
    
    print "$data\n" ;
    
  6. or download this
    bla bla bla $globalvar
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2020-11-30 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?