Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2017-08-20 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (313 votes). Check out past polls.

    Notices?