From: Stefano Crocco Date: 2008-06-13T14:53:53+09:00 Subject: Re: array to string conversion On Friday 13 June 2008, Clement Ow wrote: > Hi, I have 2 arrays(which is part of the hash): > > ex = {} > ex[0] = ["xls", "ini", "20080326"] > ex[1] = ["gif", "xls", "rb"] > > All i managed to convert is(using .to_s): > str[0] = "xlsini20080326" > str[1] = "gifxlsrb" > > but i want to convert each array into a string, something like > str[0] = "xls,ini,20080326" > str[1] = "gif,xls,rb" > > where they are seperated by a comma.. Any clean way of doin this? ex[0].join ',' Stefano