Help for this page

Select Code to Download


  1. or download this
    my ($field1, $field2, $field3) = (undef, undef, undef);
    my $sth = $dbh->prepare('select * from table');
    ...
    }
    $sth->finish;
    for ($field1, $field2, $field3) { $_ ||= '' }
    
  2. or download this
        $dbh->do('insert into blah (?, ?, ?)', undef, $x, $y, $z);
        if ($dbh->err) {
    ...
                # some other problem
            }
        }