Your test is invalid. File::Spec will never produce 'bar\baz'* on your system. Reread the OP.
Update: I thought it went without saying given the context, but:
* — where '\' is a path separator.
In reply to Re^3: CPAN Module for mixing Unix/Windows path
by ikegami
in thread CPAN Module for mixing Unix/Windows path
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |