in reply to Extra iteration while fetching 'fetchrow_array' in DBI and standerd way of using DBI
Could you, please, explain in a few sentences, what do you need? I am sorry, code is messy from my point of view. Alternatively, DBI documentation gives you more oportunities how to fetch rows from database...