From: Chris Bailey Date: 2008-08-27T22:04:48+09:00 Subject: Re: syntax error, unexpected kELSE Jes炭s Gabriel y Gal叩n wrote: > On Wed, Aug 27, 2008 at 2:55 PM, Chris Bailey > wrote: >> puts "Exiting..." >> $running = false >> else >> buf = "" >> z = 0 >> $map.each do |x| >> x.each do |y| >> if z < 5 >> buf = buf + y.to_s >> z++ > > Ruby doesn't support this syntax. Change it to z += 1. > >> else >> buf = buf + "\n" >> z = 0 >> end >> end >> end >> puts buf >> end >> end > > Hope this helps, > > Jesus. Thanks a million guys, I go back and forth with languages and didn't even notice that. I wish the error had been "Syntax Error, You are an idiot". I probably would have figured it out faster. -- Posted via http://www.ruby-forum.com/.