Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 lurking in the Monastery: (3)
As of 2015-07-28 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls