in reply to DBI script gives HTTP 500 error
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 ( ).$dbh->{'col_names'} = ["timestamp", "email", "name", "address", "city +", "state", "zip"];
At the very least, my change causes perl -c to come back ok.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI Help!
by peppiv (Curate) on Jan 15, 2002 at 02:49 UTC |