in reply to Re: Chmod
in thread Chmod

To clarify for those used to the unix command...chmod(0NNN, $file) is not the same as "# chmod 0NNN $file" run from a shell. Perl interprets the value as octal because of the leading 0. So if you're trying to get g+s, you'll need to use 02NNN or oct(2NNN).