in reply to Failure of catfile on Windows 7

«/foo/go/do» relative to the root (catfile('', '/foo/go/do')) is NOT «\\foo\go\do». The old behaviour is wrong; the new behaviour is correct.

It has nothing to do with Windows version, it has to do with File::Spec's version. They must have fixed a bug.

Replies are listed 'Best First'.
Re^2: Failure of catfile on Windows 7
by Anonymous Monk on Mar 01, 2011 at 20:25 UTC
    Yes, they did fix Perl. I updated to 5.12 and now I see the same results on WinXP as I do on Win7. I guess our code had been using a lazy convenience on earlier Perl incorrectly returning a double backslash. We definitely shouldn't have been going about it that way. Thx.
Re^2: Failure of catfile on Windows 7
by ikegami (Patriarch) on Mar 01, 2011 at 18:35 UTC

    To expand on what I said, there is no operation that can go from

    volume = current dir = \foo\go\do

    to

    volume = \\foo\go dir = \do

    There's simply no relation between the two. You're definitely not looking to concatenate path components. What are you actually trying to do?