Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Answer: Funny usage of print function

by davido (Cardinal)
on Sep 13, 2003 at 21:44 UTC ( #291295=categorized answer: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $a;
    $a = " Some stuff here
           Some more stuff on the next line ";
    
  2. or download this
    my $string = <<END_HERE;
    Here is some text.
    ...
    are expected.  A here document won't
    confuse people.
    END_HERE
    
  3. or download this
    print << END_HERE;
    Here is multi-line
    text created with a 
    here document.
    END_HERE
    
  4. or download this
    my $string;
    $string = <<END_HERE;  # Seen as double quotes.
    ...
    END_HERE
    
    ...and so on.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2020-11-30 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?