in reply to STDOUT to multiple files

You could try my tie-based solution: IO::MultiHandle - Operate on multiple file handles as one

We're building the house of the future together.