in reply to Re: Recursively changing STDOUT
in thread Recursively changing STDOUT

Thanks Moritz,

But to recover the old values I have now:

open(STDOUT, ">&SAVEOUT"); open(STDERR, ">&SAVEERR");

¿Can I use this with lexical variables? i.e.

open(STDOUT, ">&$SAVEOUT"); open(STDERR, ">&$SAVEERR");

It will not produce a interpolation of the filehandle?

Casiano