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

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

Thread Previous | Thread Next
From:
hv
Date:
February 25, 2003 06:31
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
200302251433.h1PEXMV14158@crypt.compulink.co.uk
Rafael Garcia-Suarez <rgarciasuarez@free.fr> wrote:
:Jarkko Hietaniemi (via RT) wrote:
:> $ ./perl -e 'local ${"FOO"}=1'
:> Can't localize through a reference at -e line 1.
:
:The patch below solves this problem by moving this error message
:from compile-time to run-time, and allowing the construct
:C<local ${expression()}> as long as the expression() returns a
:string, and not a reference.

Thanks, applied as #18774.

Hugo

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