Update: IO::Tee appears to work with lexical file handles as well.
In reply to Re^3: Problems with Filehandles and TeeOutput by ikegami in thread Problems with Filehandles and TeeOutput by hkpatv