in reply to Reset STDERR to console
{ local (*SAVEERR); open SAVEERR ">&STDERR"; # ... do your stuff open STDERR, ">&SAVEERR"; } [download]