in reply to Extra iteration while fetching 'fetchrow_array' in DBI and standerd way of using DBI

I'm afraid your code is too long for me to be able to answer your main questions, but here are some general suggestions:
  • Comment on Re: Extra iteration while fetching 'fetchrow_array' in DBI and standerd way of using DBI