Help for this page

Select Code to Download


  1. or download this
    my $file = "output.txt";
    open (FOO, "> $file") or die "Cannot write '$file': $!";
    ...
    # If you are going to do a bunch more stuff.
    close (FOO);
    # prints here are back to normal.
    
  2. or download this
    perl yourscript and args > outputfile