Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    );
    
    printf("string = $string\n");
    
  2. or download this
    #!/bin/tcsh
    
    /home/perl_scripts/pass_newline_as_text.pl \
        -string 'foo\nbar'
    
  3. or download this
    string = foo
    bar
    
  4. or download this
    string = foo\nbar