> From: dba dba [mailto:[EMAIL PROTECTED]]

> I tried to put the line
> 
> if ($dbh->error) {trap_die("error");}
> but it will not work because the perl will exit as soon as it raise
> error.

catch exceptions with eval:

eval {
#DBI stuff connect, prepare, execute, fetch, etc.
# (with RaiseError=>1 !!!)
};
trap_die($@) if $@;

HTH,
Douglas Wilson

Reply via email to