Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-07-03 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls