From ruby-talk Fri Aug 20 09:22:33 2004 From: Emmanuel Touzery Date: Fri, 20 Aug 2004 09:22:33 +0000 To: ruby-talk Subject: Re: Got stuck... Message-Id: <4125C335.5080209 () wanadoo ! fr> X-MARC-Message: https://marc.info/?l=ruby-talk&m=109299379009916 Meino Christian Cramer wrote: >Hi, > > may be my Enigma hacking has encyphered my brain also...but... > > What is wrong with this code: > > etwdata=[[1,2],[3,4],[5,6]] # only example data > > etwdata.each{ |rot| > rot.each{ |val| > print (val + ?A).chr," " # here ruby fails...error message below... > } > print "\n" > > Ruby's error message: > > basicenigma4.rb:175: warning: don't put space before argument parentheses > > > Sorry... but _I_ dont see anything wrong here... > > didn't read it all, but imho ruby wants to read: print(val + ?A).chr," " but you want to write: print((val + ?A).chr," ") or sth like that. put explicit brackets in that case. emmanuel