Not sure you should be doing it this way, but you can distill your code into:
$stmt =~ s/\?/shift @bind/ge;
or with quotes
$stmt =~ s/\?/"'".(shift @bind)."'"/ge;In reply to Re^2: Fill in SQL from Bind Values
by hdb
in thread Fill in SQL from Bind Values
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |