Subject: | weaken CODEREF |
Looks like weaken doesn't support CODE:
$ 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)
Tested on perl-5.12.4, Scalar::Util-1.35.
On perlmonks this issue was confirmed on 5.18.0: http://perlmonks.org/?node_id=1061941