Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 contemplating the Monastery: (11)
As of 2014-08-20 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls