in reply to Re: How do I restore STDOUT
in thread How do I restore STDOUT

That was meant by 'magical SAVOUT'. You must first copy your handle to another one to be able to copy back. In your first code you didn't do this and consequenly you copied a closed filehandle 'back'.