Help for this page

Select Code to Download


  1. or download this
    eval {
        $sth->execute();
    ...
        # and re-throw the common message
        die 'HEY!!!! Something is messed up here!';
    }
    
  2. or download this
    my $sql = q{INSERT INTO mytable VALUES ( ?,?,? )};
    eval {
    ...
        # error trapping here
        ...
    }