Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Here, doccy doccy. nice doccy. heredoc, treat.

by Vynce (Friar)
on Jun 21, 2001 at 05:56 UTC ( #90272=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    print <<IMPLIED;
    $foo
    IMPLIED
    
  2. or download this
    $foo
    date
    Wed Jun 20 15:33:51 PDT 2001
    date
    
  3. or download this
    my @list = <<qw(HERE);
    Foo Bar Baz
    HERE
    
  4. or download this
    my @list = qw <<HERE;
    
  5. or download this
    my @list = qw(<< HERE);
    Foo Bar Baz
    HERE
    
  6. or download this
    my $bar = <<HERE;
    Foo Bar Baz
    HERE
    my @list = qw($bar);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2015-03-27 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (620 votes), past polls