http://qs321.pair.com?node_id=755487


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

Replies are listed 'Best First'.
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.