The DBH quote function will quote a variable apropriately for the DB that your handle is connected to, escaping all necessary metacharacters, etc....
my $s=$dbh->quote($a);
In reply to RE: DBI Quoting question
by lhoward
in thread DBI Quoting question
by perlcgi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |