Hi -- On Sat, 7 Feb 2009, Jonathan Wills wrote: > >> why do you want to use eval? >> eval is evil and in most cases not needed in Ruby > > I want my program to run user-supplied ruby code, and eval is the only > thing I know of that can do this. If there is a better way I would be > willing to try it. I know in python that the exec statement is > considered 'evil', but all that means is you have to be careful. Yes, but what does *that* mean? :-) David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!