From: Brian Candler Date: 2011-01-15T20:57:43+09:00 Subject: Re: What are your ruby rough cuts ? Joseph Lenton wrote in post #975106: > Back on topic, my number one gripe with Ruby has always been 'unexpected > $end, expecting keyword_end' parse error. It's given when you load a > file but you've missed out an 'end' keyword somewhere in your script. > The parser has reached the end of the file and still expects to see one. > The main issue is that you could be missing an 'end' anywhere in your > script, yet it reports the error on the very last line (which is just > useless). I understand your pain, I used to do the binary-chop thing too :-) The solution is to run your code through ruby 1.9 with -w flag; it warns about indentation mismatches, which generally show where the problem is, exactly as you described. (This is the only reason I have a copy of ruby 1.9 installed) -- Posted via http://www.ruby-forum.com/.