From: "Peter C. Verhage" Date: 2005-04-14T03:04:48+09:00 Subject: Re: newbie question re: variable assignment Simon.Mullis@equinoxsolutions.com wrote: > Why doesn't this work? > > 1.upto(9) do |x| > puts ?#{x} > end This doesn't work because "puts ?#{x}" isn't a valid statement. If you change this line to "puts x.chr" it should work. I don't know what you wanted to do with the "?#{x}", so I can't really comment on that... :/ Regards, Peter