Help for this page

Select Code to Download


  1. or download this
    #!/tool/bin/perl -w
    use strict;
    ...
        printf("element $i of array = ");
        printf("%s\n", $array[$i]);
    }
    
  2. or download this
    > ./stderr_test.pl
    Use of uninitialized value in printf at ./stderr_test.pl line 11.
    ...
    Use of uninitialized value in printf at ./stderr_test.pl line 11.
    element 4 of array =
    ...
    
  3. or download this
    > ./stderr_test.pl > & log
    
  4. or download this
    Use of uninitialized value in printf at ./stderr_test.pl line 13.
    Use of uninitialized value in printf at ./stderr_test.pl line 13.
    ...
    element 1 of array = 
    element 2 of array = 
    ...
    
  5. or download this
    open(STDERR,'>&', STDOUT);