in reply to Re: Fill in SQL from Bind Values
in thread Fill in SQL from Bind Values

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;