in reply to Problems with Filehandles and TeeOutput

Your $fh variable is not a regular filehandle, but an IO::File instance. Try
open my $fh, '>>', 'test.out';
in your second example and tell us what happens. (I don't have TeeOutput installed to test...)
[]s, HTH, Massa (κς,πμ,πλ)