From: Jet Koten Date: 2010-01-23T02:35:00+09:00 Subject: Re: Argh?! :) kEND, $end and kELSE in a simple program Rob Biedenharn wrote: Thanks a lot Rob, it makes it a lot easier for me to know what Ruby is thinking in human terms. I'm enjoying it greatly and am trying to build up my Ruby ability to get ready to try Rails in the future. This forum/list is truly a great resource with people like you and Xavier willing to help the new people so readily. > > 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." > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com -- Posted via http://www.ruby-forum.com/.