Append . . . or die qq{Can't chmod "$file": $!\n}; and see if you're getting an error back from chmod that you're missing right now.
In reply to Re: perl script cannot chmod but shell script does
by Fletch
in thread perl script cannot chmod but shell script does
by doctor tim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |