Help for this page

Select Code to Download


  1. or download this
    $sth = $dbh->prepare( "select blah from table" )
        or die "Prepare failed: ", $dbh->errstr;
    
  2. or download this
    $dbh->{RaiseError} = 1;
    $sth = $dbh->prepare( "select blah from table" )
    
  3. or download this
    $dbh->{RaiseError} = 1;
    eval {
      my $sth = $dbh->prepare("select blah from table");
    ...
      eval { $dbh->rollback };
      die "Unable to rollback: $@" if $@;
    }
    
  4. or download this
    print map{substr'hark, suPerJacent other l',$_,1}(11,7,6,16,5,1,15,18..23,8..10,24,17,0,12,13,3,14,2,4);