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

I understand the behaviour of Path::Class: It is not designed to look into a path string and guess from there what OS type it is supposed to be - but this is the very thing I'm looking for.
I suspect this a difficult task, as '\' is a legal character in Unix filenames.
  • Comment on Re^3: CPAN Module for mixing Unix/Windows path

Replies are listed 'Best First'.
Re^4: CPAN Module for mixing Unix/Windows path
by rovf (Priest) on Jun 05, 2008 at 13:31 UTC
    Actually there are many things which will get you in trouble with cross-platform filenames. Another example beside of the backslash would be the colon (illegal in Windows and on the Mac). But when you do cross-platform stuff, you forbid anyway a certain set of characters which might get you in trouble (/\@:[]*, just to name a few), so this would be a "garbage in - garbage out" problem anyway, so this is not something I would worry.
    -- 
    Ronald Fischer <ynnor@mm.st>