in reply to Re: Handling a Database Errorin thread Handling a Database Error
Instead of doing "if ($@)", it is better to do what r_rajesh suggested. Although you want to ignore the duplicate key situation, you still want to deal with other errors.