http://qs321.pair.com?node_id=317039


in reply to Re: simple chmod
in thread simple chmod

chmod $mod, $file or die "Couldn't chmod $file";
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: $!\n";
That will probably reveal the reason for the chmod failure without requiring any further investigation.

Makeshifts last the longest.