more useful options | |
PerlMonks |
Re: Windows folder access error ($^E)by tye (Sage) |
on Oct 24, 2014 at 14:45 UTC ( [id://1104873]=note: print w/replies, xml ) | Need Help?? |
Add $^E to your error report and you might get a better idea what is going wrong. My only guess is that your script is running in a context where it doesn't have a current "working drive" and if you prepend the "C:" to your string, that it might fix the problem. You can see the code that is producing this error at p5git://win32/win32.c., in particular:
So EINVAL (invalid argument) just means "not ERROR_NO_MORE_FILES, ERROR_PATH_NOT_FOUND, nor ERROR_NOT_ENOUGH_MEMORY". $^E should tell you what GetLastError() returned. - tye
In Section
Seekers of Perl Wisdom
|
|