How about using 'local'? .. Is this doing what you want?
Your code works, too.
So, now I have to choose which one to use. :-)
In reply to Re^2: Nested redirect for STDERR to a string buffer within a perl program
by Anonymous Monk
in thread Nested redirect for STDERR to a string buffer within a perl program
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |