in reply to Re^4: DBI and mysql query formattingin thread DBI and mysql query formatting
I would go with the more complete code you have posted below.