From: Alvaro Perez Date: 2007-08-17T01:28:45+09:00 Subject: Re: Double quote escape character Austin Ziegler wrote: > On 8/16/07, Alvaro Perez wrote: >> It�s a bit strange this. >> >> On my irb: >> >> irb(main):053:0> p "\"hello\"" >> "\"hello\"" > > puts "\"hello\"" # => "hello" > puts "\"\"hello\"\"" # => ""hello"" > > p uses #inspect, which usually escapes certain values. IRB uses > #inspect, too. > > -austin that´s very interesting, I had already notice that p and puts work differently, i'll search about that #inspect thing... -- Posted via http://www.ruby-forum.com/.