while (@recs->$sth2->fetchrow_array){}
Wouldn't that rather be
while (@recs = $sth2->fetchrow_array){} [download]
In reply to Re: DBI & Cursors by almut in thread DBI & Cursors by joec_