From: RLMuller@... (Richard) Date: 2003-05-26T05:35:35+09:00 Subject: Re: Getting '\' to be used as the separator in Dir.getwd -- how to? Hi daz, Thanks for your succinct and apparently portable solution: > Dir.getwd.gsub!(File::SEPARATOR, File::ALT_SEPARATOR) I had used: sCurDir = Dir.getwd.gsub(/\//, '\\') which appears to have worked fine. I have two nit-picking questions, if you don't mind. 1. Am I correct in assuming File::ALT_SEPARATOR ought to be set by the group that ports Ruby to a platform? 2. Am I also correct that the "!" operator is not significant because you have to have a target variable to receive the transformed w.d. string? Again, despite my modest disappointment in the lack of a feature that I recall being in Perl, I am nevertheless appreciative of a portable solution. Regards, Richard