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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985434]
[shmem]: meh. setting up a SIG{__DIE__} before loading Net::SSLeay still triggers Can't locate object method "tid" via package "threads" at /usr/share/perl/5. 20/
[choroba]: setting in a BEGIN block?
[shmem]: choroba, yes

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-07-26 15:15 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (396 votes). Check out past polls.