From: Ruby Newbee Date: 2009-12-14T16:03:08+09:00 Subject: How to write this correctly? Hi, In python this is right: >>> "Hello, %s %s" %("Matz!","again") 'Hello, Matz! again' But in ruby it will get wrong: "Hello, %s %s" %("Matz!","again") SyntaxError: (irb):39: syntax error, unexpected ',', expecting ')' "Hello, %s %s" %("Matz!","again") ^ from /usr/bin/irb:12:in `
' So what's the correct syntax for this case? Thanks.