in reply to File::Path problem

perldoc -f umask

Your current umask is probably preventing the bits from being set properly. If you do a chmod after the fact, they'll be set correctly. You could also reset your umask, but that has the potential to cause you to create files/directories in other places with insecurely lax permissions.

Alan