Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: XP and slashes?

by morgon (Deacon)
on Apr 04, 2009 at 22:15 UTC ( #755487=note: print w/ replies, xml ) Need Help??


in reply to XP and slashes?

I don't work a lot on XP but afaik both forward and backward slashes work in paths - I ususally use "/" myself and never had a problem so far.

I would therefore think your problem is probably something else.

But if you can show that there are cases where "/" won't work on Windows, please try to isolate the problem and post a demonstration here.

And while I am at (this is not addressing your problem but maybe someone else may find it useful):

1) It's probably best to use File::Spec to build path-expressions in a portable way.

2) If you want to build a path-expression for windows using "\" as separator keep in mind that you cannot simply do "$dir\$file" (which is not syntactically wrong but probably won't give you the path you want).


Comment on Re: XP and slashes?
Re^2: XP and slashes?
by Nkuvu (Priest) on Apr 05, 2009 at 01:53 UTC

    The only time I've had issues with slashes in file paths is when using Win32::OLE.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-07-30 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls