Help for this page

Select Code to Download


  1. or download this
      open ( OUTFILE, '>myfilename.txt' );
      print "This goes to the screen\n";
      select ( OUTFILE );
      print "This goes to the file\n";
    
  2. or download this
      open ( OUTFILE, '>myfilename.txt' );
      print "This goes to the screen\n";
      *STDOUT = *OUTFILE;
      print "This goes to the file\n";