in reply to chmod fails

chmod 755, $file_name or die "Can't chmod $old because: $!\n";

That's not octal.


🦛

Replies are listed 'Best First'.
Re^2: chmod fails
by wazat (Monk) on Aug 14, 2020 at 23:06 UTC

    To futher hippo's reply 755 decimal is 1353 octal.

    In UNIX terms this corresponds to t-wxrw--wx. As you can see the owner won't have read permission.

Re^2: chmod fails
by Umdurman (Acolyte) on Aug 15, 2020 at 09:14 UTC
    Sorry, forgot the leading 0, that I use it in all my code, 0777 for instance