in reply to Tee STDOUT

I'd start by taking a look at IO::Tee. Update: oops, you alluded to it! I'm blind. It should interact fine, as long as you call functions that IO::Scalar supports. I don't know if binmode is supported, for example. Why don't you write a quick test?