in reply to umask settings in perl

A quick explanation of umask (php, but it still applies)
Jill Ramonsky Apr 2 2003
Subject: RE: PHP-WIN how to use umask() ???

The PHP manual (unfortunately) assumes some Unix knowledge here.

The paramter to umask is a bitfield, passed as an integer. Within this bitfield:

When accessing a file, the lower 9 bits of the permissions of the file (as stored on the server) are logically ANDed with the complement of the current "umask" - which you can set with the umask() function - and the resulting bitfield is inspected to see whether or not to grant permission for the specified action.

Jill

Jason L. Froebe

Team Sybase member

No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1