in reply to DBD::CSV and fetchrow_hashref not working
At first I thought it was the csv_sep_char=\\~ that was the problem and that should be csv_sep_char=\~ but it works with either for some strange reason.while (my $row = $sth->fetchrow_hashref) { for my $k (keys %$row) { print qq|$k: $row->{$k}\n|; } } # Output # Year: 2014 # Major: 0 # SDescr: - # LDescr: - # Obj: 20140000020
It could simply be that you don't actually do anything to inform you of the results - did you remove the code from the line where it says: # some output code here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBD::CSV and fetchrow_hashref not working
by Anonymous Monk on Dec 11, 2013 at 20:45 UTC | |
by tangent (Parson) on Dec 11, 2013 at 21:13 UTC | |
|
Re^2: DBD::CSV and fetchrow_hashref not working
by Anonymous Monk on Dec 11, 2013 at 21:18 UTC |