How can I correctly quote query parameters using DBI?
- by imerez
I am dumping the a number of things including the following into a db INSERT statement
\"$rec->{reqHdrs}\"
However when for example my value for reqHdrs contains quotes it causes the statement to end and thus cause invalid sql.
e.g.
bla;bla="http://www.yahoo.com/xhtml",bla bla
How do I escape the double quotes inside this statement ?