Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
more useful options
 
PerlMonks  

Re^3: CPAN Module for mixing Unix/Windows path

by mandarin (Pilgrim)
on Jun 05, 2008 at 12:48 UTC ( #690414=note: print w/ replies, xml ) Need Help??


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
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>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://690414]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-04-24 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls