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

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

Thread Previous | Thread Next
"Konovalov, Vadim" via perl5-porters
July 25, 2022 18:28
RE: perl -we '$00' dies in 5.32
Message ID:
> 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.


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

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

Internal Use - Confidential

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About