in reply to Re: I go crazy with windows filenames with spaces!
in thread I go crazy with windows filenames with spaces!

Just a note wrt Windows paths: perl does the right thing because Windows does the right thing with forward-slashes as directory separators. It's just that almost none of Windows userland does.

The only example I can think of for a tool doing the right thing off hand is chdir in cmd.exe: cd /d c:/windows.

Replies are listed 'Best First'.
Re^3: I go crazy with windows filenames with spaces!
by Marshall (Canon) on Jan 20, 2010 at 04:54 UTC
    I said that: Windows Perl will do the "right thing". That's a bit different than "Windows does the right thing". Perl has an amazing capacity to "un-screw" Windows quirks.

      Anonymonk is right. Perl doesn't do anything to the slashes. Windows accepts both forward and backward slashes as path seps.

      Individual command line tools and applications might not handle forward slashes, and some require that you quote the path if it contain a forward slash (to distinguish it from command line options). But Windows itself doesn't care.

      It's a matter of Perl using Windows at the API level, not about making special cases.