From: Clement Ow Date: 2008-06-16T16:45:56+09:00 Subject: Re: array to string conversion Pe単a, Botp wrote: > From: alandacosta@gmail.com [mailto:alandacosta@gmail.com] > # ex.map {|i,v| v * "," } > > i always forget that "*" op on arrays > thanks for the reminder :) > > kind regards -botp Thank you guys, for your kind inputs! =) it really helped me alot! However, I now encounter another problem.. Assuming my hash: ex = {} ex[0] = [".xls", ".ini", "20080326"] ex[1] = ["RVG", ".xls", ".rb"] I need to extract the values in each array with the extentions(values with periods) into one string and the dir names(values without the periods) into another string. I've been tryin to figure out but to no avail, is there a clean way to do that? -- Posted via http://www.ruby-forum.com/.