http://www.perlmonks.org?node_id=976052

Riales has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I'm following the advice found in how do i redirect STDOUT, STDIN, or STDERR to a FILE? on how to redirect STDOUT to a file. I'm having trouble figuring out how to push output back to STDOUT after I'm done directing output to the file.

Anybody know?

Thanks!

Riales

EDIT:I should clarify that I am using the first method (with IO::Handle).

  • Comment on How do you set STDOUT back to...well, STDOUT?

Replies are listed 'Best First'.
Re: How do you set STDOUT back to...well, STDOUT?
by runrig (Abbot) on Jun 13, 2012 at 19:49 UTC
    Check the docs where it says "Here is a script that saves, redirects, and restores STDOUT and STDERR..."

      Perfect--that was it! Thanks. As usual, I was looking through the wrong docs (perldoc IO::Handle)...