chmod $mod, $file or die "Couldn't chmod $file";
Then you can check if you have enough permissions to change attributes of the file. If you want to incorporate this checks into your program, then read the "perldoc -f -X".
HTH.
In reply to Re: simple chmod
by TVSET
in thread simple chmod
by wolverina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |