Since "while" was brought up, it's worth mentioning that this also 
affects the while modifier:

puts var1.whatever while var1 = getnext

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