Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh1->prepare("insert into guff values (1,2,3)")
      or croak "prepare error"  # dies here for me
    
  2. or download this
    my $dbh = DBI->connect(... ,{RaiseError => 1});
    
    ...
        local $SIG{__ERROR__} = \&my_handler;
        # database code
    }