From: Patrick Hurley Date: 2005-04-14T02:59:57+09:00 Subject: Re: newbie question re: variable assignment On 4/13/05, Simon.Mullis@equinoxsolutions.com wrote: > Shall we find out? We want to be the friendly news group, so starting out questions are welcome :-) > Why doesn't this work? > > 1.upto(9) do |x| > puts ?#{x} > end The #{ } escape is for with quoted strings. You could do something similar to what you write using and eval; however, I think you would be better off with: 65.upto(75) { |x| puts x.chr } Patrick