From: Gavin Sinclair Date: 2002-11-26T14:21:58+09:00 Subject: Re: Difference between puts and print From: "andrew delboy" > On Tue, Nov 26, 2002 at 01:36:26PM +0900, Gavin Sinclair wrote: > > From: "Stephen Neu" > > > > > You can also say > > > p "hello" > > > > This differs from #puts calls #to_s on its arguments while #p calls #inspect. > > And print is also an 'inspect' type call? (ie interrogates the string to see > if there are escaped characters?) According to 'ri', #print calls #to_s on non-String arguments. Gavin