powerman has asked for the wisdom of the Perl Monks concerning the following question:
Is this a bug or feature? Tested on perl-5.12.4, Scalar::Util-1.35.$ perl -MScalar::Util=weaken -E '$a={}; weaken($b=$a);$a=0;say $b' $ perl -MScalar::Util=weaken -E '$a=sub{};weaken($b=$a);$a=0;say $b' CODE(0x5964f33f920)
Update: More details on https://rt.cpan.org/Ticket/Display.html?id=90227
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: weaken CODEREF
by dave_the_m (Monsignor) on Nov 11, 2013 at 09:14 UTC | |
by tobyink (Canon) on Nov 11, 2013 at 13:07 UTC | |
|
Re: weaken CODEREF
by Athanasius (Archbishop) on Nov 11, 2013 at 02:52 UTC | |
|
Re: weaken CODEREF
by Haarg (Priest) on Nov 11, 2013 at 09:59 UTC |