Robert Hicks wrote:
How is it best to catch errors when doing DBI stuff in web applications? Wrap the insert "code" in an eval statement? Croak or die statements? I am thinking eval because I can set autocommit to "off" and then do rollbacks if $@ has an error.
The PrintError, RaiseError, and HandleError attributes of a DBI handle provide useful ways of dealing with errors that the database returns.
-- SG -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>