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.
In reply to Re^2: Handling a Database Error
by pg
in thread Handling a Database Error
by kayak9630
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |