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 01:11
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
20030221101149.7ebcb5bd.rgarciasuarez@free.fr
Mark Jason Dominus <mjd@plover.com> wrote:
> 
> Perhaps the best way to address this would be to extend the peephole
> optimizer to optimize ${"COMPILE_TIME_CONSTANT"} to
> $COMPILE_TIME_CONSTANT.

While not breaking strict 'refs.' As says perlref :

    use strict 'refs';
    ${ bareword };      # Okay, means $bareword.
    ${ "bareword" };    # Error, symbolic reference.

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