develooper Front page | perl.perl5.porters | Postings from May 2004

Re: perl-5.8.4 and /??{...}/ blocks, Inline-0.44

Thread Previous
From:
Alexey Tourbin
Date:
May 17, 2004 03:51
Subject:
Re: perl-5.8.4 and /??{...}/ blocks, Inline-0.44
Message ID:
20040517104533.GG4105@solemn.turbinal.org
On Sun, May 16, 2004 at 09:58:26PM -0500, Ken Williams wrote:
> The notes for perl584delta(1) are not strictly correct, it should say 
> something like:
> 
>           my $x = qr{ ... (??{ $x }) ... };
> 
>        will now (correctly) fail under use strict. (As the inner $x is 
> and has
>        always referred to the package variable $x, not the lexical 
> variable $x)
> 
> I guess the author of that note was assuming that the code was written 
> in the 'main' package.

Thanks, I see now.

Thread Previous


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