http://www.perlmonks.org?node_id=690446


in reply to Re^3: CPAN Module for mixing Unix/Windows path
in thread CPAN Module for mixing Unix/Windows path

I surely must be missing something here. In what way my test is invalid? I just was curious what catdir would do, so I downloaded your code, stripped the lean_forward sub and added a print statement.
And was surprised by the output, as it contained a backslash.
File::Spec will never produce 'bar\baz' on your system
Well, it does. Double-checked it.
'bar\baz' would make a valid unix filename, so maybe File::Spec does not render the '\' as a path seperator?