kehansen has asked for the wisdom of the Perl Monks concerning the following question:
With this code I do get the oracle error and the "RC-E" into the ERRORS_$ file. But I want to send the RC-E to stdout.my $dbh = DBI->connect('dbi:Oracle:miemsdb', 'ipse', 'ipse', {AutoComm +it => 0}) || die "RC-E\n"; open (STDERR, ">ERR/ERRORS_${myPID}"); ########################### my $DirChk = $dbh->prepare($sqlChkDir) || die "RC-E\n"; $DirChk->execute($DirName) || die "RC-E\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: die send to stdout & stderr
by pc88mxer (Vicar) on May 02, 2008 at 21:12 UTC | |
by kehansen (Novice) on May 02, 2008 at 21:25 UTC | |
|
Re: die send to stdout & stderr
by Corion (Patriarch) on May 02, 2008 at 21:08 UTC | |
|
Re: die send to stdout & stderr
by runrig (Abbot) on May 02, 2008 at 21:56 UTC |