Steffen Mueller wrote:

> About the code:
> ...
> I assume you did the replacement of just one path separator in order to
> change the string as little as possible, after all c:\foo\ is
> semantically more similar to c:\foo/ than to c:\foo.

Could the path
  c:\two/
cause any problems in this problem situation, or even
  c:\new
because \t and \n are special?

It that case, I think it would be best to convert all \ to / in the paths.

In my code, I try to use File::Spec for joining file parts which I hope avoids
these issues - is there anything better than File::Spec for the job? It must be
a common problem!

Reply via email to