From: Nick Brown Date: 2010-01-23T05:04:08+09:00 Subject: Re: Argh?! :) kEND, $end and kELSE in a simple program Rob, if you wrote an "error to English" translator and submitted it as a patch to Ruby, you would be a hero among men. > And to explain the error from this code: > > -:12: syntax error, unexpected kELSIF, expecting kEND > elsif said !=said.upcase > ^ > -:16: syntax error, unexpected kELSE, expecting $end > > In more human terms (don't worry, soon you'll only see the redhead): > > "I found a problem on line 12 when I saw 'elsif' because I was > expecting something like 'end' because I was inside a 'while' block at > the time. Here's the point on line 12 that I was sure I had a problem. > > Oh, and then on line 16 I found an 'elsif', but I just thought the > file would be finished by now." -- Posted via http://www.ruby-forum.com/.