develooper Front page | perl.perl5.porters | Postings from October 2012

[perl #36051] LVALUE magic should know how to assign to globs

From:
Father Chrysostomos via RT
Date:
October 30, 2012 12:48
Subject:
[perl #36051] LVALUE magic should know how to assign to globs
Message ID:
rt-3.6.HEAD-3041-1351626496-29.36051-14-0@perl.org
On Fri Oct 26 06:32:19 2012, sprout wrote:
> I fixed that in 13be902ce some time ago, but that is not the whole story.
> 
> The same thing occurs with regexps.  Substitute ${qr||} for *FOO in the
> assignments above, and you will see regexps stringify.
> 
> I thought perhaps the solution would be to disallow ${qr||} and make
> REGEXP an opaque type, but *foo = qr// has to do something, so I think
> it has to remain a scalar.
> 
> But XPVLV and struct regexp conflict.

Now fixed in 8d919b0.

-- 

Father Chrysostomos




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