in reply to Re^3: perl and psql
in thread perl and psql
$dbh->do ("INSERT INTO $table (start, end) VALUES (?,?);", @{$cluster})
When you use do with placeholders and bind values, you also need to specify the \%attr hashref (for syntactical reasons, because the synopsis is $dbh->do($statement, \%attr, @bind_values)). You may use undef if you don't have any attributes.
$dbh->do ("INSERT INTO $table (start, end) VALUES (?,?)", undef, @$clu +ster)
|
|---|