in reply to Re^4: Using IO::File to redirect STDOUT
in thread Using IO::File to redirect STDOUT

That's the code you had in your OP. As you know, that doesn't work.
  • Comment on Re^5: Using IO::File to redirect STDOUT