Help for this page

Select Code to Download


  1. or download this
    # it interpolates variables
    print OUT <<"END_OF_PRINT";
    ...
    many lines
    many lines
    END_OF_PRINT
    
  2. or download this
    print OUT 
      "string1\n", 
      "string2\n",
      "string3\n",
    ;
    
  3. or download this
    open OUT, '>', $file or die "$file: open for writing failed: $!\n";
    
  4. or download this
    print OUT "text bla bla\n" or die "$file: print failed: $!\n";
    close OUT or die "$file: close failed: $!\n";