Hello all,
My question is say I have die code like:
My question is say I have die code like:
Code:
open (LOG, ">$log_file") or die ("Error opening log file $1");
or
die $sth->errstr if $sth->err;
or
$scp->cwd("/tmp") or die $scp->{errstr};
[/code}
How do I write the "die" output to a file handle instead of STDERR or both?
Thanks,
Nick
If at first you don't succeed, don't try skydiving.