in reply to Re: Re: Opening and Closing STDOUT
in thread Opening and Closing STDOUT
Surely what you want to do is to duplicate the STDOUT file handle to keep it out of the way. Then duplicate it back to STDOUT when you are done. Something like:
local(*SAVED_STDOUT); open(SAVED_STDOUT,">&STDOUT"); ...Mess with STDOUT... close(STDOUT); open(STDOUT,">&SAVED_STDOUT");
Warning: I am not near a machine where I can check this at the moment, so this is probably not be accurate, look in your favourite O'Reilly book to get the real syntax.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:^4 Opening and Closing STDOUT
by submersible_toaster (Chaplain) on Mar 05, 2003 at 23:47 UTC |