Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 about the Monastery: (3)
As of 2021-03-05 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (108 votes). Check out past polls.

    Notices?