good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: DBI won't let go!by strider corinth (Friar) |
on Dec 06, 2002 at 20:46 UTC ( [id://218149]=note: print w/replies, xml ) | Need Help?? |
This may be off-topic, but it may be helpful to you anyway. There are a couple of odd things about your code. I don't know the specifics of what you're trying to do, but the reason that the prepare() and execute() statements are separated is so that you don't have to do a connect() each time you want to do something in the database. Your program will run a lot faster like this:
It's possible that changing this will fix the problem. DBI could be blocking on any of those commands. You should probably include some of the error checking mentioned in the DBI documentation, and make sure you're using strict and warnings. -- Love justice; desire mercy.
In Section
Seekers of Perl Wisdom
|
|