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.
in reply to Re^3: CPAN Module for mixing Unix/Windows path
in thread CPAN Module for mixing Unix/Windows path
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?