Help for this page

Select Code to Download


  1. or download this
    my $old_stdout;
    my( $fh, $fn );
    ...
        return <$fh>;
      }
    }
    
  2. or download this
    redir_stdout();
    stupid_c_function();
    die undir_stdout();
    
  3. or download this
      open my $old_out, ">&STDOUT" or die $!; 
      open STDOUT, "> sc_out" or die $!; 
      send_command('i', "@_", 0 );
      #close STDOUT;