Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

(arturo) Re^3: DBI error and $@

by arturo (Vicar)
on Dec 06, 2001 at 22:05 UTC ( #130012=note: print w/replies, xml ) Need Help??

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.


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.

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130012]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2023-06-04 20:46 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (22 votes). Check out past polls.