in reply to Saving Standard Error

Replies are listed 'Best First'.
Re^2: Saving Standard Error
by bichonfrise74 (Vicar) on Aug 06, 2009 at 19:45 UTC
    Can you explain why closing STDERR is a bad idea? I never knew that.
      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!";