From: yvon.thoravalNO-SPAM@... (Yvon Thoraval) Date: 2004-03-31T17:29:27+09:00 Subject: [newbie] prob with join "/" i get a very small prob with join : (fs stands for file.separator) plary = Array.new plary << context.split(fs).compact << path.split(fs).compact << "languages" << "bottles" print "size = ", plary.size, "\n" # -> size = 4 plary.each {|p| print p, "\n" } # -> com-ultrid-yvonthor # -> MaCave # -> languages # -> bottles pl = plary.join "/" print "pl = ", pl, "\n" # -> pl = /com-ultrid-yvonthor/MaCave/languages/bottles i expected com-ultrid-yvonthor/MaCave/languages/bottles instead (without first "/") i don't catch out my mistake... the same arroses with : plary = [context.split(fs).compact, path.split(fs).compact, "languages", "bottles"] -- yt