in reply to Error-checking and logging

I just wanted to add to your list of untrusted sources: data retrieved from a database via DBI. Just because that database is in the control of your company and possibly even your group does not guarantee that it is all cosher. Make sure that what you thought you where querying for is what you got.