On Tue, Jan 31, 2012 at 3:50 PM, Josh Cheek <josh.cheek / gmail.com> wrote: > It's great if you want to copy and paste some text. The text might have > single and double quotes in it, but with a heredoc that doesn't matter. > Otherwise, you'd have to go through your document, find all the quotes, and > escape them. Well... 16:11:42 ~$ ruby x there are "double" and 'single' quotes! And even #{does not} harm. "\nthere are \"double\" and 'single'\nquotes!\nAnd even \#{does not} harm.\n" 16:11:44 ~$ cat -n x 1 str=%q{ 2 there are "double" and 'single' 3 quotes! 4 And even #{does not} harm. 5 } 6 puts str 7 p str 16:11:46 ~$ :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/