Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: DBI: pass $dbh from a sub

by dsb (Chaplain)
on Jul 29, 2004 at 16:13 UTC ( #378412=note: print w/replies, xml ) Need Help??

in reply to DBI: pass $dbh from a sub

Well the first line of your output indicating a successful connection is from your own instructions.

The rollback is probably because you have AUTOCOMMIT disabled and since you neither commit nor explicitly destroy the DBI object, the database cancels the changes.

That last error does seem like it's because of the scope of $dbh so try and declare the variable, or establish the connection outside of the loop.

This @ISA my cool %SIG

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://378412]
[james28909]: why, what is the point. if you cant see that we are smarter than cavemen then i need to just shutup lol. cavemen didnt propell themselves onto a moon. they stared at it and probably howled
[SuicideJunkie]: We are certainly vastly more educated and wealthy. Raw intelligence is much more difficult to measure.
[james28909]: exactly. i think the question that should be asked is, where will intelligence take us.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-12-15 15:05 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.