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 06:15
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
20030221151557.00ace5e6.rgarciasuarez@free.fr
Jarkko Hietaniemi <jhi@iki.fi> wrote:
> > local ${"FOO$BAR"} should be allowed IMHO (except under "strict refs" of
> 
> You are braver than me :-)

Of course, this implies that C<local $$x> should also be allowed when $x
is not a reference. And this implies in turn that the error "Can't localize
through a reference" should become run-time instead of compile-time.

> > 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