Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect("dbi:SQLite:dbname=request_db","","", {RaiseErr
    +or => 1});
    
  2. or download this
    my $dbh;
    eval {
    ...
       # the error will be in the $@ variable
       # the error raised could be from the connect or the do methods
    }