Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in perl under windows (activeperl) when i want to check whether a path is a file or directory and the path includes non-western characters, neither -f nor -d return true on a file which really exists.
what can i do?
Posted

1 solution

Use the testL function from the Win32::LongPath[^] CPAN module I suggested in my answer to your last question:
PERL
die "$file is not a regular file" if testL ('f', $file);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900