|
|
| "be consistent" | |
| PerlMonks |
Re: simple chmodby TVSET (Chaplain) |
| on Dec 25, 2003 at 18:58 UTC ( [id://317025]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The code itself looks OK. First, you can examine chmod's return value.
Manual says that it returns the number of successfully chmod'ed files.
So you can do something like:
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 Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||