in reply to can the default file handle be localized?

Ok - the default file handle can't be localized, but the symbol STDOUT can be. So if you know the name of the current default file handle then you can do what I want with local().

Thanks!