From: Peter Hickman Date: 2011-03-03T00:03:16+09:00 Subject: Re: some unrecognized syntax error Mmm, on 1.8.7 your code works with no problem. Have you tried ruby -c checker.rb? On 2 March 2011 14:55, Robert Klemme wrote: > On Wed, Mar 2, 2011 at 3:50 PM, Ruby Fan > wrote: >> root@localhost# dos2unix test.rb >> dos2unix: converting file test.rb to UNIX format ... >> root@localhost# ruby -c test.rb >> test.rb:1: syntax error, unexpected kDEF, expecting $end >> usagesagechecker.rb' >>                         ^ >> >> I don't understand what's wrong? Where is my fault? > > What does od tell you now? > > robert > > -- > remember.guy do |as, often| as.you_can - without end > http://blog.rubybestpractices.com/ > >