Help for this page

Select Code to Download


  1. or download this
      # assuming $sth1 is a previously prepared statement handle
      my $sth2 = $dbh->prepare( $sth1->{Statement} );
    ...
      $sth2->bind_param($_, $PV->{$_} $PT->{$_})
        for keys %{ %$PV, %$PT };
      $sth2->execute();
    
  2. or download this
      # assuming $sth1 is a previously prepared statement handle
      my $sth2 = $dbh->prepare( $sth1->{Statement} );
    ...
      $sth2->bind_param($_, $ParamValues->{$_} $ParamTypes->{$_})
        for keys %{ %$ParamValues, %$ParamTypes };
      $sth2->execute();
    
  3. or download this
    use strict;
    use Data::Dumper;
    ...
    my $s2 = $h->prepare(q/insert into mje2 values(?)/);
    $s2->bind_param($_, $ParamValues->{$_}, $ParamTypes->{$_})
        for keys %{ %$ParamValues, %$ParamTypes };
    
  4. or download this
    $VAR1 = {
              '1' => 2
    ...
                     }
            };
    Can't use string ("1/8") as a HASH ref while "strict refs" in use at /
    +tmp/z.pl line 18.