Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: XP and slashes?

by morgon (Priest)
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).

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2023-01-30 21:46 GMT
Find Nodes?
    Voting Booth?

    No recent polls found