On Oct 28, 2007, at 6:12 PM, Scott McWhirter wrote:
You could use an IO::Handle based object wrapped around STDOUT/STDERR.
It doesn't really matter whether it's a glob filehandle or an IO::Handle or a tied handle. The important part is the select() which lets you avoid changing each and every print statement.
[Of course, you get nailed when the code explicitly says "print STDOUT ..."]
Chris