in reply to DBI script gives HTTP 500 error

I don't know if anyone mentioned this or I am off base, but the line:
$dbh->{'col_names' => ["timestamp", "email", "name", "address", "city" +, "state", "zip"]};
Maybe should be:
$dbh->{'col_names'} = ["timestamp", "email", "name", "address", "city +", "state", "zip"];
I have never used csv in DBI before but the book says that $dbh{'col_names'} is array. You have a hash style pointer ( => ) with array style brackets ( ).

At the very least, my change causes perl -c to come back ok.


I admit it, I am Paco.

Replies are listed 'Best First'.
Re: Re: DBI Help!
by peppiv (Curate) on Jan 15, 2002 at 02:49 UTC
    Thanks for the eagle eye. I changed it, but to no avail.
    Where's that drink!