"Kurt Euler" <keuler / portal.com> 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)
 <Do stuff "A" here.>
   break if some_condition_is_met
 }

 <Do stuff "B" here.>