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