hal9000 / hypermetrics.com wrote:
>Sorry, I don't have The Book handy...
>
>Is there or is there not a for-modifier?
>
>This works for me:
>
>  i=0
>  (puts "Hi"; i+=1) while i < 4
>
>This doesn't:
>
>  puts "Hi" for i in 1..4
>
>I'm probably being dense.

According to my reading, there is no for modifier 
(only while and until), but there is a for loop 
construct:

for i in [1..4] do
  puts "Hi"
end

Of course, I have come to prefer:

4.times do
  puts "Hi"
end

Kevin