http://qs321.pair.com?node_id=386458


in reply to Warnings while redirecting STDERR

You just need an extra reference to them. A simple (and good) way would be to localize them:
local *SAVEERR; local *ERRORFILE;
--Dave
Opinions my own; statements of fact may be in error.