http://qs1969.pair.com?node_id=130012


in reply to Re: Re: DBI error and $@
in thread DBI error and $@

In addition to what the anonymous monk has to say (I'll admit it, it was me, not logged in), take a look at the code that creates the DB handle in that example, where RaiseError is set to 1 (i.e. true). That means the die is automatically called on a DB error, so it's functionally equivalent to the code "AM" provided.

HTH

I mistrust all systematizers and avoid them. The will to a system shows a lack of integrity -- F. Nietzsche

Replies are listed 'Best First'.
Re: (arturo) Re^3: DBI error and $@
by notsoevil (Pilgrim) on Dec 06, 2001 at 22:15 UTC
    I have RaiseError set to 1 so like you say, die is called automatically, which should set $@. Is that incorrect? If so, why do the examples not use a explicit die statement with the errstr method -- they, from what I can tell, are just using $@ .. the errstr method is not used at all.

    --
    notsoevil
    --
    Jeremiah 49:32 - And their camels shall be a booty. . .