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

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

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
February 21, 2003 02:11
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
20030221111135.0781d827.rgarciasuarez@free.fr
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About