On 4/10/07, Ryan Davis <ryand-ruby / zenspider.com> wrote: > > On Apr 10, 2007, at 09:15 , Ren Py wrote: > > > E:\jxkh\tools>ruby getKhbz.rb > > getKhbz.rb:2499: memory exhausted > > when '2497';return '2497'; > > > > "memory exhausted"!!!! why? please I don't know why you use a 2498 lines case only to return the same value you matched in the when statement. Anyway, I've tested the script with ruby 1.8.6 and I got the same error (memory exhausted). If I remove two lines of the case, it runs fine. grepping the ruby source shows regex.c is the only file with that string. And thats how far I got. Any ideas? -- Luis Parravicini http://ktulu.com.ar/blog/