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


in reply to Re^5: DBD::CSV failing
in thread DBD::CSV failing

Your code:
while (@row = $sth->fetch) # don't do this
is wrong. In DBI, fetch() is an alias for fetchrow_arrayref so its return is a scalar (an array reference), not an array.