Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: umask with 0666

by almut (Canon)
on Aug 04, 2010 at 12:14 UTC ( #852863=note: print w/ replies, xml ) Need Help??


in reply to umask with 0666

is there a better way of doing this?

You might store the current/previous umask (as returned by umask), and set it back when done... (in case you're doing other things later in the same proccess where you want the default umask to apply).

(BTW, your default umask likely was 0022 (not 0222), otherwise you'd have gotten 0444.)


Comment on Re: umask with 0666
Download Code
Re^2: umask with 0666
by fionbarr (Pilgrim) on Aug 04, 2010 at 12:39 UTC
    thanks...yes 0222 was a typo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-11-01 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (227 votes), past polls