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


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

Okay, I'm back (again). Using $sth->fetchrow_hashref seems to be solving my problem. I have discovered that one cannot use $sth->fetch if one chooses to execute a query containing conditionals based on fields; i.e.
$sth->prepare("SELECT * FROM db WHERE field < 2000"); while (@row = $sth->fetch) { ... }
will return the first row and then nothing beyond that. If I use
while ($row = $sth->fetchrow_hashref) { ...
for some reason, everything seems to be hunky dory. Also, that "undef" in setting up the column names and variable references also is wont to cause me difficulty ("perldoc DBD::CSV" for reference on that one). Go figure.
--*greywolf;
/* relayer halo gmail */