The stupid question is the question not asked | |
PerlMonks |
Re^4: CPAN Module for mixing Unix/Windows pathby mandarin (Hermit) |
on Jun 05, 2008 at 14:39 UTC ( [id://690446]=note: print w/replies, xml ) | Need Help?? |
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 systemWell, 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?
In Section
Seekers of Perl Wisdom
|
|