![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Can a DBI Placeholder accept multiple values?by igelkott (Priest) |
on May 13, 2008 at 14:45 UTC ( #686282=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|