in reply to Formatting quotes in a String

Perhaps all you need is:

$string .= '"';

See the dot (.) operator in perlintro for more on this useful feature.