I think what's happening is that the mask argument to mkdir is interacting with the value of umask. To quote:
The permission (or ``mode'') values you pass mkdir or sysopen are modified by your umask, so even if you tell sysopen to create a file with permissions 0777, if your umask is 0022 then the file will actually be created with permissions 0755.
emc
In reply to Re: Why does unix mkdir and perl mkdir behave differently?
by swampyankee
in thread Why does unix mkdir and perl mkdir behave differently?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |