in reply to Re^3: DBI & processing groups of rows
in thread DBI & processing groups of rows

Thank you for your input. I ended going with the format I wrote in the original post (although with the else block removed to reduce indentation)