From: Eleanor McHugh Date: 2008-06-28T00:58:31+09:00 Subject: Re: printf goober On 27 Jun 2008, at 16:52, Lloyd Linklater wrote: > I was experimenting with printf thus: > > puts printf("%s is %d years old.", "booboo", 12) > > and got this result: > > booboo is 12 years old.nil > > Where does that nil originate and how do I get rid of it? Your code contains two expressions: puts (printf("%s is %d years old.", "booboo", 12)) so the printf is outputting the string "Booboo is 12 years old." and returning the value nil, then puts is outputting that nil Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason