A loop does not define a new scope. So if you have defined a variable,
it will be available in the loop, you can modify it in the loop, and it
stays modified after the loop.

PHP works this way, and even Javascript.
Do you know a language that has loop level scope? I got interested.

-- 
Posted via http://www.ruby-forum.com/.