From: Robert Klemme Date: 2011-03-02T23:39:36+09:00 Subject: Re: some unrecognized syntax error On Wed, Mar 2, 2011 at 3:33 PM, Ruby Fan wrote: > test.rb:1: syntax error, unexpected kDEF, expecting $end > usagesagechecker.rb' > > I don't understand what does this error really means. > Some said its all about whitespaces. > > Problem happens when I launch test.rb script: `ruby test.rb` > > Attachments: > http://www.ruby-forum.com/attachment/5987/test.rb > http://www.ruby-forum.com/attachment/5988/checker.rb 15:38:10 Temp$ cat test.rb usage15:38:17 Temp$ od -tx1c test.rb 0000000 72 65 71 75 69 72 65 20 27 63 68 65 63 6b 65 72 r e q u i r e ' c h e c k e r 0000020 2e 72 62 27 0d 0d 64 65 66 20 75 73 61 67 65 0d . r b ' \r \r d e f u s a g e \r 0000040 65 6e 64 0d 0d 75 73 61 67 65 e n d \r \r u s a g e 0000052 15:38:29 Temp$ dos2unix test.rb test.rb: done. 15:38:51 Temp$ ruby19 -c test.rb Syntax OK 15:38:54 Temp$ robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/