IO::CaptureOutput will do and is easier, to me, than select magic on the various handles. You are right though that it would probably make more sense to rewrite the module. Don't dig in with shims to inappropriate code if you can take a little time to fix the code to behave itself and leave the disposition of output up to the caller.
In reply to Re: redirecting STDOUT output to variable?
by Your Mother
in thread redirecting STDOUT output to variable?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |