> > > Bleadperl or 5.8.0: > > > > > > $ ./perl -e 'local ${"FOO"}=1' > > > Can't localize through a reference at -e line 1. > > > $ > > > > > > What reference where? > > Ronald J Kimball <rjk@linguist.Thayer.dartmouth.edu>: > > That's a symbolic reference, isn't it? Syntactically yes, but semantically it isn't, all that needs to be known about the variable name is known in compiletime. In other words, I would have expected the above to be equivalent to ${FOO} or $FOO. > Mark-Jason Dominus: > Perhaps the best way to address this would be to extend the peephole > optimizer to optimize ${"COMPILE_TIME_CONSTANT"} to > $COMPILE_TIME_CONSTANT. Yup, something like that. -- Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this special biologist word we use for 'stable'. It is 'dead'." -- Jack CohenThread Previous | Thread Next