develooper Front page | perl.perl5.porters | Postings from September 2010

Re: [perl #77508] List assignment to fake globs fails

Thread Next
From:
Father Chrysostomos
Date:
September 12, 2010 12:34
Subject:
Re: [perl #77508] List assignment to fake globs fails
Message ID:
73AECA47-3565-4BAC-B0DE-519B2E6013F2@cpan.org

On Aug 29, 2010, at 6:48 PM, Father Chrysostomos wrote:

> See ticket #1804. This bug occurs with list assignment as well:
> 
> $ perl5.13.4 -le' $f = *a; *$f = {}; print $f'
> *main::a
> $ perl5.13.4 -le' $f = *a; (*$f) = {}; print $f'
> HASH(0x8039f0)

I’ve attached a patch for this. I recommend against applying it, though. When I had almost finished writing, I realised what the real problem was. That is described in ticket #77810.

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