in reply to Re: perl and database: argument for the prepare method
in thread perl and database: argument for the prepare method

Exactly. If you will be executing a statement multiple times, you only need prepare it once. This will save time.

$update=<<UPDATE; update foo set bar = ? where id = ? UPDATE $dbstmt = $dbhandle->prepare($update); foreach $recid (keys %records) { $dbstmt->execute($newvalues{$recid}, $recid); }
1 Peter 4:10