http://qs321.pair.com?node_id=11119685


in reply to Strawberry Perl on Windows 10 file test operators do not work as expected

Works for me (see below).

Cases where it does not work are where there are unicode chars in the file names, which is when Win32::LongPath is very useful.

perl -We "print -e 'C:\Users'" 1
perl -v This is perl 5, version 30, subversion 0 (v5.30.0) built for MSWin32-x +64-multi-thread Copyright 1987-2019, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.