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

Sometimes it's easier to let the shell work for you. Have you considered writing a shell script that neatly wraps up the 2>stderr.log?

ObFastolfeDisclaimer: You may want to use 2>>stderr.log instead.

Replies are listed 'Best First'.
RE: RE: How does one redirect STDERR to a file? ((Filehandle, redirection, logging))
by princepawn (Parson) on Sep 27, 2000 at 16:48 UTC
    Thats a bit difficult in this case because I would have to propagate command-line arguments from the wrapper to the real script.... ACtually maybe not:
    @syscmd = ('real-prog', @ARGV); system @syscmd or die "syscmd failed";