FYI, this is one of the cases where $^E is more informative than $! (on Windows). For this failure, it would report:
The process cannot access the file because it is being used by another + process
When writing Perl code that will only be run on Windows, I sometimes report $^E as well as or instead of reporting $!. Most of the time it doesn't matter. But there are a few cases where $^E more accurately points to the real source of the failure.
- tye
In reply to Re: Can't remove directory-Permission denied ($^E)
by tye
in thread Can't remove directory-Permission denied
by rrrrr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |