in reply to Why was it neccessary to pass a DBI handler by reference?

What you have described shouldn't happen. Therefore either there is a bug that I don't know about, or your description is incomplete in some important particular.

I'd initially guess that the description is incomplete because bona fide Perl bugs are fairly rare. And I'd look in particular at how you clear variables since what you are describing could easily be explained by something, somewhere, holding on to a reference to $dbh so that DESTROY didn't get called when you expected it to.

  • Comment on Re: Why was it neccessary to pass a DBI handler by reference?

Replies are listed 'Best First'.
Re: Re: Why was it neccessary to pass a DBI handler by reference?
by kudra (Vicar) on Jan 29, 2004 at 14:30 UTC
    I agree that it shouldn't happen.

    I was mostly curious as to whether anyone had observed something like this in DBI before. That doesn't seem to be the case, so I agree the bug is most likely in my code.

    Therefore, I will take the advice of tilly and Abigail and put my curiosity on hold until I have time to make a test case to demonstrate the problem.