--- In perl_advanced_programmming%40yahoogroups.com">perl_advanced_programmming
yahoogroups.com, "Fred Garvin"
<ahqmed
...> wrote:
>
> is there a way that when a file or directory is created to set the
permissions through perl. i
> have the code below but it's not working. thanks in advance for your
help.
> mkdir("$imagedir", 0777) || &error("Sorry! The username $username is
already taken. 3 " ,
> __FILE__, __LINE__,);
>
Please try
chmod(0111, "myfile"); for file permissions
and
mkdir("newdirectory", 0777); for directory permissions
.