Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in Windows, i get "Filename too long" when the perl script tries to 'opendir' the directory with long path. i use activeperl to run the perl script.
how can i resolve it?
Posted
Updated 18-Jun-15 23:59pm
v2

1 solution

Use Win32-LongPath[^]:
Quote:
Although Perl natively supports functions that can access files in Windows these functions fail for Unicode or long file paths (i.e. greater than the Windows MAX_PATH value which is about 255 characters). Win32::LongPath overcomes these limitations by using Windows wide-character functions which support Unicode and extended-length paths.
 
Share this answer
 
Comments
ilostmyid2 19-Jun-15 6:51am    
thank u :)

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