Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: DBI error and $@

by frankus (Priest)
on Dec 06, 2001 at 20:41 UTC ( #129973=note: print w/replies, xml ) Need Help??


in reply to DBI error and $@

try $dbh->errstr() instead of $@?

--

Brother Frankus.

¤

Replies are listed 'Best First'.
Re: Re: DBI error and $@
by notsoevil (Pilgrim) on Dec 06, 2001 at 21:14 UTC
    No, perhaps I wasn't clear -- sorry. I said I can print the value of $DBI::errstr, but it was my understanding that "If there is a syntax error or runtime error, or a die statement is executed, an undefined value is returned by eval, and $@ is set to the error message."

    And from the examples I mention above, I thought that is what they are trying to catch for. They're not looking at $DBI::errstr, they're looking at $@. I want to know why and such.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129973]
help
Chatterbox?
zentara...oO 1 more reason I prefer Perl to Python is I can't believe how long Python takes to compile, and you can't disable the myriad of tests
[LanX]: so that's where you've been the last two years? Compiling Python?
[zentara]: LanX no! I was learning why Krishna made me into a unicorn. :-)
[LanX]: The old chromosone question ... Why Y???

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-03-30 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (361 votes). Check out past polls.