Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

perlfunc:umask

by gods
on Aug 24, 1999 at 22:41 UTC ( #192=perlfunc: print w/replies, xml ) Need Help??

umask

See the current Perl documentation for umask.

Here is our local, out-dated (pre-5.6) version:


umask - set file creation mode mask



umask EXPR

umask



Sets the umask for the process to EXPR and returns the previous value. If EXPR is omitted, merely returns the current umask.

If umask(2) is not implemented on your system and you are trying to restrict access for yourself (i.e., (EXPR & 0700) > 0), produces a fatal error at run time. If umask(2) is not implemented and you are not trying to restrict access for yourself, returns undef.

Remember that a umask is a number, usually given in octal; it is not a string of octal digits. See also oct, if all you have is a string.


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[choroba]: That still doesn't make it offensive
[LanX]: of course not
[LanX]: it's pretty ironic if you know the character
choroba likes the movie
[choroba]: Lady_Aleena Do you really need to say "WorldBuilder" after having said "WorldBuilding"?
[LanX]: have to watch it again :)
[Lady_Aleena]: choroba, the tables in that group of modules is from the World Builder's Guidebook, so I thought it best to add the name of the book to the name of the module.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-05-24 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?