From: Rick DeNatale Date: 2009-04-10T20:51:33+09:00 Subject: Re: Join strings --00163630f62b58231c046731fc59 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Apr 10, 2009 at 7:36 AM, Fresh Mix wrote: > What is the simples way to join strings? > > tmp1 = 'aa' > tmp2 = 'bb' > tmp3 = nil > tmp4 = nil > tmp5 = 'dd' > > result = 'aabbcc' [tmp1, tmp2, tmp3, tmp4, tmp5].join -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --00163630f62b58231c046731fc59--