in reply to Reset STDERR to console

The safest thing to do is probably to save your old STDERR and restore it afterwards:
{ local (*SAVEERR); open SAVEERR ">&STDERR"; # ... do your stuff open STDERR, ">&SAVEERR"; }
Also, take a look at perlopentut.