From: Anita Date Date: 2003-09-03T12:54:43+09:00 Subject: Re: How to bail from an iteration but not the program?... "Kurt Euler" wrote in message > > How can I terminate the running of a program from within an iteration, but not leave the program? Use break > EG, In this code: IO.foreach("control.txt") { |x| field = x.chop.split("\t", -1) break if some_condition_is_met }