in reply to Re^2: STDOUT to multiple files
in thread STDOUT to multiple files

Yes. Copy/paste http://search.cpan.org/src/KENSHAN/IO-Tee-0.64/Tee.pm into your program.