>
> >
> > I think I've found a (small) problem in the execute_for_fetch
> > POD (ver. 1.41), in the example there's an extraneous
> $ins->execute()
> > (either that, or I still don't understand how this works):
> >
> >
> > my $sel = $dbh1->prepare("select foo, bar from table1");
> > $sel->execute;
> > my $ins = $dbh2->prepare("insert into table2 (foo, bar)
> > values (?,?)");
> >
> > $ins->execute; <<<< What is this execute for ??? Is it
> needed ??
>
> It should probably be $sel->execute;
Oops. Correction, I believe you are correct. I missed the one above.
Makes sense to me.
>
> >
> > my $fetch_tuple_sub = sub { $sel->fetchrow_arrayref };
> > my @tuple_status;
> > $rc = $ins->execute_for_fetch($fetch_tuple_sub, [EMAIL PROTECTED]);
> > my @errors = grep { ref $_ } @tuple_status;
> >
> > Maybe a tiny nit to pick, but some erstwhile novice
> > trying to use this example might get some odd behavior...
> >
>
Jeff