in reply to Strawberry Perl on Windows 10 file test operators do not work as expected
Related: Windows and stat() a.k.a. -X
And a note on backslash (\) vs. forward slash (/):
Windows works fine with forward slashes, use them to get rid of all escaping issues of backslashes. As a welcome side-effect, this will make your code easier to port to other systems where the path sepearator is a forward slash. The only issue with forward slashes on Windows is that some old and/or stupid programs interpret forward slashes as option indicators, even when found in filenames. In that case, a simple
tr|/|\\| for @args;
before passing @args to the problematic program should help.
Alexander
|
|---|