From: Nate Smith Date: 2004-09-16T22:17:16+09:00 Subject: Re: Ex-Perl coders: Howz it feel to convert to Ruby? > Under which circumstances do you need to_s for numbers? What's wrong with > this? > > >> puts 1 > 1 > => nil > >> print 1, "\n" > 1 > => nil > >> puts "foo #{1} bar" > foo 1 bar > => nil Try print "a" + 1 Won't work -- you have to do print "a" + 1.to_s Nate