http://qs321.pair.com?node_id=11126255


in reply to DBI::db error I am confused!

G'day traincity,

I suspect you're doing something like this:

my $dbh = DBI->connect(...); my $sth = $dbh->prepare(...); ... $dbh->finish();

As already pointed out by others, you probably don't need to use finish(). Please read the relevant documentation: "DBI: finish".

If, after reading the documentation, you decide that you do need to use finish(), it should be written like this:

$sth->finish();

You've been asked to show us your code more than once. Kindly ensure you do this before asking any further questions. As it is, we're working in the dark and just making guesses.

— Ken