use Interpolation "'" => sub {"'".$db->quote($_)}; my $sql = "update some_table where some_attr = $'{$some_string}'"; #### $some_string = $dbh->quote($some_string); my $sql = "update some_table where some_attr = '$some_string'";