develooper Front page | perl.perl5.porters | Postings from February 2016

Re: [perl #127552] No warning or error on @$

Thread Previous | Thread Next
February 16, 2016 13:14
Re: [perl #127552] No warning or error on @$
Message ID:
Ed Avis wrote:
>Perl silently accepts an array variable @$

$ perl -lwe '@$ = qw(a b c); print @$'

The array variable works.  Making it an error would be an incompatible
change.  (However, perlvar(1) does describe punctuation variable names
as "reserved".)  If it is to be done, it should probably be done via a
deprecation cycle.


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