From: Thomas Hafner Date: 2007-08-12T01:09:59+09:00 Subject: Re: global_variable_set (like instance_variable_set) Thomas Hafner wrote/schrieb : > how can a function global_variable_set(gvarname, value) be > implemented? The function should behave like the following one, but not use ``eval'' if possible. def global_variable_set(gvarname, value) eval("#{gvarname.id2name}=value") end Regards Thomas