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

You didn't mention whether you're using ActiveState or Cygwin (or something else). They handle paths differently. Cygwin translates paths so that everything looks more unixy and you can use / in your input to it. However, I've had better luck in general with ActiveState which uses standard Win32 paths.

It's not quite clear to me what the problem is in your example above (you want to use \ in your input, or get / in the output, or what?), but I use File::Spec->canonpath($File::Find::name) in my scripts to correct for these \/ issues. Maybe that will help.

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