CHMOD

chmod LIST

Changes the permissions of a list of files. The first element of the list must be the numerical mode. Returns the number of files successfully changed.

$cnt = chmod 0755, 'foo', 'bar'; chmod 0755, @executables;

Back to functions