Don't ask to ask, just ask | |
PerlMonks |
Recursively changing STDOUTby casiano (Pilgrim) |
on Sep 16, 2007 at 12:20 UTC ( [id://639244]=perlquestion: print w/replies, xml ) | Need Help?? |
casiano has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I need to write some recursive subroutine that in each entry has to
but I need to use lexical variables $SAVEOUT, and $SAVEERR instead of global variables. The problem being that to recover the old values I have now:
I assume that this construction will not work If I use it with lexical variables? i.e.
How can I do it? Thanks! Casiano
Back to
Seekers of Perl Wisdom
|
|