Hi,

In message "[ruby-talk:5627] Re: local variables (nested, in-block, parameters, etc.)"
    on 00/10/17, Clemens Hintze <cle / qiao.localnet> writes:

|Sorry matz, but could you show me a simple example where such a construct is
|necessary? I use Ruby now for several years, but I am sure I never had to
|use that feature until today. I know it exists, but I really cannot remember
|that I need it ... perhaps I have a wrong imagination, so I would like to
|ask you for an example ...

Here's the simplest example:

  i = nil  
  ary.each{|i| break if condition(i)}
  p i

Of course, you can use Array#find for this case.

							matz.