From: "Ball, Donald A Jr (Library)" Date: 2007-04-11T02:34:51+09:00 Subject: Re: memory exhausted > -----Original Message----- > From: Luis Parravicini [mailto:lparravi@gmail.com] > Sent: Tuesday, April 10, 2007 12:29 PM > To: ruby-talk ML > Subject: Re: memory exhausted > > On 4/10/07, Ryan Davis 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? Is ruby building a regular expression behind the scenes when evaluating a case statement for a bunch of strings? - donald