Your makepath sounds like File::Spec's catdir. catdirwill return a consistent result, but the opposite of the one you asked for.
I suppose you could use filter the output of catdir as follows
use File::Spec::Functions qw( catdir ); sub lean_forw { my $s = @_ ? $_[0] : $_; $s =~ tr!\\!/!; return $s; } lean_forw(catdir('/home/foo/abc', 'bar\baz'))
In reply to Re: CPAN Module for mixing Unix/Windows path
by ikegami
in thread CPAN Module for mixing Unix/Windows path
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |