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

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

Thread Previous | Thread Next
Rafael Garcia-Suarez
February 21, 2003 02:11
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
Jarkko Hietaniemi (via RT) wrote:
> $ ./perl -e 'local ${"FOO"}=1'
> Can't localize through a reference at -e line 1.
> $ 
> What reference where?
> To be honest, I had
> originally something more that "FOO" in between the {}, I had "\cFOO".
> But still completely compiletime, nothing naughty like "FOO$BAR".

local ${"FOO$BAR"} should be allowed IMHO (except under "strict refs" of
course). Note that local *{"FOO$BAR"} is allowed (and appears to
work). What do people think ?

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