in reply to Re: DBI error and $@
in thread DBI error and $@
There are no other warnings. :)
I know it should print something. However it is not, hence my confusion.
I'd really just like an explanation of the examples in the Perl DBI book and/or Randal's article on why they used the format:
I believe my sample code is an example of this (save the $dbh->rollback, but that isn't the issue). The examples check $@ and then die with it, after a rollback. If $@ isn't being printed (interpolated into my warn string), how does the conditional execute? If it is executing (and hence doing a rollback) when $@ does not have a printable value, this may affect my transactions.eval { $dbh->do($statement); $dbh->commit(); } if ($@) { $dbh->rollback(); die $@; }
Or am I just completely batty?
--
notsoevil
--
Jeremiah 49:32 - And their camels shall be a booty. . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: DBI error and $@
by jeffa (Bishop) on Dec 06, 2001 at 23:28 UTC | |
by runrig (Abbot) on Dec 06, 2001 at 23:39 UTC |