http://www.perlmonks.org?node_id=161686


in reply to File::Path problem

The permissions on newly created directories are modified by your umask value. So if you create a new directory (with mkpath or mkdir) with specified permissions of 0777 but with a umask of 022, then the mode of the directory will be 0755.

See umask for how to change your umask value.

stephen