Oh purveyors of Perl wisdom, I have a question for you.
I have written a Perl program that parses a CSV file and inserts new records from that into a database. Occasionally, one of the entries in the CSV file is already in the database. Rather than wasting resources with a select query to see if there is already a value in the database, I would rather use the error that MySQL sends back to the DBI stating that there is an existing entry. I would like to use that error message to issue a "next" from the while loop that I am in. What is the most graceful way to handle this.
Thank you so very much!