in reply to Re: Saving Standard Error
in thread Saving Standard Error

Can you explain why closing STDERR is a bad idea? I never knew that.

Replies are listed 'Best First'.
Re^3: Saving Standard Error
by jrsimmon (Hermit) on Aug 06, 2009 at 19:56 UTC
    use strict; use warnings; warn "My errors go to the console!"; open(STDERR, ">myErr.log") or die $!; warn "My errors are logged!"; close(STDERR); warn "My errors go...nowhere!";