You could use an IO::Handle based object wrapped around STDOUT/STDERR.
On 10/28/07, Chris Dolan <[EMAIL PROTECTED]> wrote: > On Oct 28, 2007, at 9:31 AM, A. Pagaltzis wrote: > > > * Matisse Enzer <[EMAIL PROTECTED]> [2007-10-27 21:20]: > >> I suppose we need to bite the bullet and just find and replace > >> all the calls to 'print' with something else. > > > > Select a tied filehandle? Not efficient… but quick to add. > > That's a popular trick for CGI-like programs -- I used it in > CGI::Compress::Gzip. > Chris