If your law had not been my delight, I would have perished in my affliction. (NIV)
Unless Your law had been my delight, I would have perished in my affliction. (AMP)
Unless thy law had been my delights, I should then have perished in mine affliction. (KJV)