From: RichardOnRails Date: 2011-01-18T00:05:19+09:00 Subject: Re: A tad of meta-programming needed On Jan 17, 2:10 am, Su Zhang wrote: > > eval($ + i.to_s) > > eval('$' + i.to_s) > > or simply: > > eval("$#{i}") > > -- > Posted viahttp://www.ruby-forum.com/. Hi Su Zhang, That failure was annoying me greatly. Thanks for restoring my sanity. I'm sticking with option 1. It's easier to interpret at a glance IMHO. But thanks for pointing out the more succinct alternative. Best wishes, Richard