in reply to Perl generated Google Maps Javascript won't work

Use here docs, then you don't have to escape anything
my $blah = <<'__BLAH__'; Anything goes here, what you see is what you get __BLAH__ print $blah;
Above program outputs
Anything goes here, what you see is what you get