in reply to How do I surround commas with escaped double-quotes?

$_ = ','; s!,!"\\\\\\",\\\\\\""!; print "$_\n";
This prints:
"\\\",\\\""
Is this what you're looking for?