>>>>> "S" == Shashank Date <sdate / everestkc.net> writes:

 Try this

S>     C:\>ruby -ve 'str = "a=2"; eval(str,binding); puts a'

svg% ruby -ve 'a=nil; str = "a=2"; eval(str,binding); puts a'
ruby 1.8.0 (2003-06-24) [i686-linux]
2
svg% 

S>     C:\>ruby -ve 'str = "a=2"; eval(str,TOPLEVEL_BINDING); puts a'

svg% ruby -ve 'a=nil; str = "a=2"; eval(str,TOPLEVEL_BINDING); puts a'
ruby 1.8.0 (2003-06-24) [i686-linux]
2
svg%


Guy Decoux