From: "Jesús Gabriel y Galán" Date: 2008-11-26T01:17:33+09:00 Subject: Re: Chris Pine tutorial assistance chapter 7 sort data without use of .sort method On Tue, Nov 25, 2008 at 4:15 PM, Giampiero Zanchi wrote: > I am a beginner too; > I use to intermix my code with a lot of 'puts'; I think you could do it > as well; Hi, I think it's better to use p instead of puts. p uses inspect on the arguments, which is supposed to give you a better insight on what is going on. Compare: irb(main):001:0> a = %w{a b c d e} => ["a", "b", "c", "d", "e"] irb(main):002:0> puts a a b c d e => nil irb(main):003:0> p a ["a", "b", "c", "d", "e"] Jesus.