http://qs321.pair.com?node_id=686282


in reply to Re^2: Can a DBI Placeholder accept multiple values?
in thread Can a DBI Placeholder accept multiple values?

You would need to replace (?) with the number of array elements

Yes, the number of (comma-delimited) "?" must equal the number of values to be inserted but the $val .= "?,"; you wrote here would of course end up with an extra comma. There's certainly other ways make this string but that should otherwise work fine.

As noted, the special "??" placeholder of DBIx-Simple eliminates the need to make the need to make this string of "?,?,?..." (as well as other simplifications).