Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Strawberry Perl on Windows 10 file test operators do not work as expected

by swl (Priest)
on Jul 22, 2020 at 22:16 UTC ( #11119685=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11119685]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2020-10-21 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (217 votes). Check out past polls.

    Notices?