See the ->quote method of DBI. Do not implement this routine yourself, and even better, use DBI placeholders instead, also documented in DBI.
In reply to Re: Using regex to add a single backslash to escape quotes, instead of 2 backslashes or 0
by Corion
in thread Using regex to add a single backslash to escape quotes, instead of 2 backslashes or 0
by lancer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |