my $sql = 'exec OSP_FOO_BAR( ?, ?, ? )'; my $sth = $dbh->prepare($sql); $sth->execute($xvar, $yvar, $zvar); $dbh->commit();