Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: state and file perms confusion

by Tanktalus (Canon)
on Aug 04, 2012 at 13:55 UTC ( #985434=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $mode = sprintf "%o", 420; # $mode = 644
    chmod $mode, $file;
    
  2. or download this
    chmod 01204, $file; # 01204 octal == 644 decimal
    
  3. or download this
    # 1. octal number
    chmod 0644, $file;
    ...
    # 6. decimal with bitmasks
    $mode = 438 & ~022; # 438 == 0666
    chmod $mode, $file;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985434]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-11-19 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?