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

Re: [perl #21321] local ${"FOO"} does not work

Thread Previous | Thread Next
From:
Mark Jason Dominus
Date:
February 20, 2003 14:39
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
20030220223951.27634.qmail@plover.com
Ronald J Kimball <rjk@linguist.Thayer.dartmouth.edu>:
> On Thu, Feb 20, 2003 at 07:28:47PM -0000, Jarkko Hietaniemi wrote:
> > Bleadperl or 5.8.0:
> > 
> > $ ./perl -e 'local ${"FOO"}=1'
> > Can't localize through a reference at -e line 1.
> > $ 
> > 
> > What reference where?
> 
> That's a symbolic reference, isn't it?

Perhaps the best way to address this would be to extend the peephole
optimizer to optimize ${"COMPILE_TIME_CONSTANT"} to
$COMPILE_TIME_CONSTANT.


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