A good suggestion, but lacking. If you add just five or so characters you get something much more useful:chmod $mod, $file or die "Couldn't chmod $file";
That will probably reveal the reason for the chmod failure without requiring any further investigation.chmod $mod, $file or die "Couldn't chmod $file: $!\n";
Makeshifts last the longest.
In reply to Re^2: simple chmod (better error messages)
by Aristotle
in thread simple chmod
by wolverina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |