in reply to File::Find uses '/' in path on Win32 system.

If you want to keep your code portable you might want to think about using File::Spec to determine what the path separator should be, I think that this is probably what File::Find is doing actually and returning the path separators that it thinks you are expecting (without looking at the code.)

/J\

  • Comment on Re: File::Find uses '/' in path on Win32 system.

Replies are listed 'Best First'.
Re: Re: File::Find uses '/' in path on Win32 system.
by chromatic (Archbishop) on Mar 10, 2002 at 18:20 UTC
    It would make sense if File::Find did that... however, it doesn't. I have a somewhat more portable rewrite that does, but it's quite a bit slower. (It's also supposed to receive a nicer interface at some point.)

    Even in 5.7.3, File::Find only works reliably on Unix and Windows systems. Mac is pretty good.