I have a program with multiple subroutines.
One of these subroutine needs to write to a file.
The remaining need to write to the screen.
How do I redirect STDOUT into a file for the one
subroutine? And , more importantly, how do I get
STDOUT to work properly again (writing to the screen)
when I am finished writing with this particular subroutine?
Thanks All.