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.