in reply to redirecting STDOUT output to variable?
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.
|
|---|