From: Robert Klemme Date: 2009-04-07T02:14:13+09:00 Subject: Re: String.split crashes my program On 06.04.2009 18:15, Mark S Bilk wrote: > On Apr 6, 8:14 am, Tomas Na wrote: >> It reaches a block of code which causes it to become unresponsive. That >> to me indicates a crash. Maybe not to you, but this discussion isn't >> about semantics. >> >> Here is my output: >> C:\Users\Tomas\Ruby>ruby test.rb >> Split this text >> >> Then nothing. We sit here for ever while it "hasnt" crashed. > > So "Split this text" is the string you're scanning? > Seems like the program is in a loop, rather than crashed. > Would you please copy and paste the entire exact content > of test.rb into a Usenet article in between two lines > of dashes ("-------------")? > Even better would be to zip it and put it on a website. > Maybe you have some weird characters in the file. pastie would work as well. I agree, we should see the whole program that is misbehaving, or better the smallest program that exhibits the described behavior. Kind regards robert