On Sun, Sep 7, 2008 at 10:53 PM, Rong <ron.green / gmail.com> wrote:
> Why does this
>
> p 3.times {|i| puts i}
>
> produce
>
> 0
> 1
> 2
> 3

try the following:

a = 3.times {|i| puts i}
puts "a = #{a}"

martin