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

S> Did not work like this for me using 1.8.0 preview 2.
S> I did not see 11 and 13 at all ... just the error for undefined
S> local variable. :-(

 This is because they use an interactive ruby shell which display the value
 of the last expression, try this

   printf("ruby %s (%s) [%s]\n", RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PLATFORM)
   eval('d=10')
   p begin p d rescue eval('d+1') end

   eval('d=12')
   p begin p d rescue eval('d+1', TOPLEVEL_BINDING) end
   p d




Guy Decoux