From: Martin DeMello Date: 2003-06-23T04:10:50+09:00 Subject: Re: String#decorate daz wrote: Or ... yes; that's exactly what sprintf is for. > > ary = %w{eight nine ten} > puts "[%s]" % ary.join(",") > n=3 > puts "%s%% done" % (n*100) > > #-> [eight,nine,ten] > #-> 300% done Sorry 'bout the blank post, let me try that again. I wasn't saying that there was no other way to do it, just that there was no other *pretty* way. sprintf isn't nearly as pretty as #{} martin