Perlers,

I have a script where I redirect STDERR to a file so that I can capture
'die' messages like so:

use warnings;
use strict;

my $logfile = "/some/path/logfile.txt";

open STDERR, ">>$logfile";

something or die "Unable to do something()\n";

close STDERR;

Is it kosher to do this?  Or is there a more preferred method to
redirect 'die' messages?

ry

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to