Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I am connecting to a database using the
DBI->connect(...) or die "Can't connect: DBI::errstr\n"; command. I'd like to print the information from the die to a log file instead of to the screen. I tried enclosing the statement in an eval but got the error message: Issuing rollback() for database handle being DESTROY'd without explicit disconnect() at dbi line 252. Is there a way to do this? In reply to Logging the results of 'die' by harmony
|
|