From: 7stud -- Date: 2009-02-19T22:26:38+09:00 Subject: Re: literal syntax for array of arrays of strings Robert Klemme wrote: > 2009/2/19 7stud -- : >> >> What's the difference between %Q and %? > > irb(main):002:0> %{foo bar #{1+2}} > => "foo bar 3" > irb(main):003:0> %Q{foo bar #{1+2}} > => "foo bar 3" > irb(main):004:0> %q{foo bar #{1+2}} > => "foo bar \#{1+2}" Uhmm...yeah. Those are the same results I got. Why would anyone use %Q then? And where is the use of % like that documented? -- Posted via http://www.ruby-forum.com/.