Help for this page

Select Code to Download


  1. or download this
    print $string . "\n";
    print $string, "\n";
    
  2. or download this
    cout << my_string + "\n";        // Concatenation with newline.
    cout << my_string << std::endl;  // Stream insertion with standard lin
    +e ending.
    cout << my_string << "\n";       // Stream insertion with newline.
    
  3. or download this
    print $string . "\n";         # Concatenation with newline.
    print $string, $/;            # List of items to print, with standard 
    +line ending.
    print $string, "\n";          # List of items to print, with newline.
    # Or more conveniently...
    print "$string\n";            # Interpolation of a variable and newlin
    +e.