$newpath=join("\",@dirs); #### $filepath=~s{/}{\\}g;