From: Alex DeCaria Date: 2010-05-04T20:18:11+09:00 Subject: Re: Something I expected to work, but didn't! Kurtis Rainbolt-greene wrote: > irb(main):001:0> x = 2 > => 2 > irb(main):002:0> y = 4 > => 4 > irb(main):003:0> x, y *= 2 > SyntaxError: (irb):3: syntax error, unexpected tOP_ASGN, expecting '=' > x, y *= 2 > ^ > from /usr/local/bin/irb:12:in `
' > > > :( You need the same number of arguments on the right hand side as you do on the left. For example, x, y = 3 print x, y => 3, nil x, y = 3, 3 print x, y => 3, 3 -- Posted via http://www.ruby-forum.com/.