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