http://qs1969.pair.com?node_id=34093


in reply to Re: How does one redirect STDERR to a file? ((Filehandle
in thread How does one redirect STDERR to a file? ((Filehandle, redirection, logging))

That probably wanted to be :-
BEGIN { open(STDERR, ">>stderr.log") or die "Failed to open log file"; }
Note the >> and the or die.

You could do this with a tied file handle too, as demonstrated recently by tilly - here