On Thu, Sep 05, 2002 at 07:51:20AM +0900, Wejn wrote:
> Hi,
>   is there any possibility to 'break' from 'case' ?
> 
> while run
>     case x
>         when 'b'
>             ``skip'' if cond # how ????
>             something_else
>         else
>             something
>     end
>     timer = Time.now
> end

Try this:

catch( :breakout ) do
  case x
  when 'b'
    throw :breakout if cond
  end
  puts "This line skipped on breakout"
end
timer = Time.now


-- 
Alan Chen
Digikata LLC
http://digikata.com