develooper Front page | perl.perl5.porters | Postings from August 2019

Re: [perl #134389] Wrong Perl's chmod behavior

Thread Previous | Thread Next
From:
Tomasz Konojacki
Date:
August 30, 2019 11:36
Subject:
Re: [perl #134389] Wrong Perl's chmod behavior
Message ID:
20190830132624.B094.5C4F47F8@xenu.pl
On Fri, 30 Aug 2019 13:21:43 +0200 (CEST)
"E. Choroba" <choroba@matfyz.cz> wrote:

> The 666 must be octal, not decimal. Replacing your command with
> 
>    chmod 0o666, "file1";
> 
> fixes the issue.
> 
> Ch.

chmod 0666, "file1"

Unlike Raku, Perl doesn't have "0o" syntax.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About