Your sample is not working code. You are passing your $sql_delete into prepare and then again into execute. The execute call only needs to pass the $snp hashref keys. Don't use the do method for selects - see DBI docs for why. Some DBDs don't support multiple active statements i.e., you cannot issue a new select until you have read all the rows from a previous select.
In reply to Re: cleaning up dbi code
by mje
in thread cleaning up dbi code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |