in reply to IO::Tee not behaving correctly
Post the failing program, if it's not too large, or put it somewhere where we can take a look.