From: John Pritchard-williams Date: 2008-10-02T18:58:45+09:00 Subject: printf statement - "args" as an Array (or something...) I'm trying to tart up some logged prepared SQL statements like this: SELECT col FROM table WHERE a =? AND b =? PARAMS: 1='one', 2='two' I thought about using a 'printf' like this, first alter the SQL statement to: sql="SELECT col FROM table where a='%s' AND b='%s'" And then do this: printf(sql,"one","two") Trouble is I need a variable list as the args: I can't seem to pass in : ["one","two"] - is there an idiom for this ? Thanks, John -- Posted via http://www.ruby-forum.com/.