From: David Alan Black Date: 2001-08-07T21:37:05+09:00 Subject: [ruby-talk:19286] Re: Help with ternary operator syntax and grammar Hello -- On Tue, 7 Aug 2001, Ryo Furue wrote: > Hi there, > > I'm fairly new to Ruby and writing small scripts with the pickaxe > book. I can't understand what's wrong with this: > > cond = true > print (cond? ", " : "\n") > > which gives you a "parse error" at line 2. The following gives you > the same error (first line elided): You need a space between cond and '?', because it's possible for there to be a method called #cond? David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav