in reply to DBI Disconnect does nothing!

What does

$dbh->disconnect or warn "Disconnection failed: $DBI::errstr\n";
gives?

Replies are listed 'Best First'.
Re^2: DBI Disconnect does nothing!
by Anneq (Vicar) on Jun 08, 2009 at 12:55 UTC

    $DBI::errstr gives the actual database error message from the last DBI method called. See DBI.pm for more information.

      Hi :) expresspotato needs to insert that code in his program, and report us the error message :)

        Yes, expresspotato needs to put that in his code and report back. I was responding to dHarry, whose question seemed to be more like "what is this?", rather than "what does this do when you try it?".

        Interestingly enough though, my response got a bunch of down votes. I wouldn't down vote someone who was genuinely trying to help but misinterpreted a question. Seems pretty counter productive to me in that it could discourage people from trying to help out.