Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Funny usage of print function

by davido (Cardinal)
on Sep 13, 2003 at 21:44 UTC ( [id://291295]=note: 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found