true, but for this it would be fine(?):
x = 4
1.upto(5) do |y|
x = y
puts x
end
puts "after the block x is #{x}
So the problem is only the parameter to the block?