From: Anthony Ob Date: 2010-10-01T12:15:29+09:00 Subject: Re: Syntax error Alex Stahl wrote: > Got it - in your code, you typed ":", while the example uses ";". > > And to expand a bit on what I typed below, the ":" is used to indicate > symbols, like ":x". So when you had the typo "|y:x|", ruby thinks > there's two items there - "y" and ":x". I realised that mistake of using : instead of ; But I am still getting an error Test6.rb:4 syntax error, unexpected ';', tCOLON2 or '[' or '.' 3.times do |y;X| test6.rb:5: syntax error, unexpected tSTRING_BEG, expecting kDO or '<' or '<' puts "Looping #{y}" test6.rb:7: syntax error, unexpected kEND, expecting $end -- Posted via http://www.ruby-forum.com/.