Re:
http://search.cpan.org/~markstos/SQL-Interp-1.06/lib/SQL/Interp.pm#Preparing_and_reusing_a_statement_handle
We read:
my $sth;
for my $href (@array_of_hashrefs) {
my @list = ('SELECT * FROM mytable WHERE', $href);
my ($sql, @bind) = sql_interp @list;
if (! defined $sth || $sth->{Statement} ne $sql) {
$sth = $dbh->prepare($sql);
}
$sth->execute(@list); ###### <------ SAY WHAT?!!!!!
$sth->fetchall_arrayref();
}
but the ->execute() should be against @bind not @list