develooper Front page | perl.perl5.porters | Postings from July 2022

RE: perl -we '$00' dies in 5.32

Thread Previous | Thread Next
From:
"Konovalov, Vadim" via perl5-porters
Date:
July 25, 2022 18:28
Subject:
RE: perl -we '$00' dies in 5.32
Message ID:
PH0PR19MB5036A82EFC702DACD90D8C7F8A959@PH0PR19MB5036.namprd19.prod.outlook.com
> The fact that neither $00 nor $0 has any relation to regular expressions is
> irrelevant, because ALL identifiers that start with digits are reserved in
> Perl. $0, for instance, is the name of the program being executed.

Regexp ones are read-only, $0 isn't

> 
> > Not a big deal, actually.
> > 
> > I accept the point that my usage of perl is often non-common, with lots of non-standard approaches, so no-one else uses $00, so dropping $00 support is ok.
> 
> It seems to me the fact that you were ever able to use $00 was a bug in those
> versions of Perl which has now been fixed.

No

$ perl -we '$0="qwerty"; print $0'
qwerty

there is a concept that perl can "lie" itself on $0

Internal Use - Confidential

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