Subject: | Use of @_ may have broken autoboxing |
I've run into an esoteric bug that causes the autobox magic to
disappear. It appears that using @_ to store references to the alias,
rather than a copy, of the invocant scalar causes the autoboxing magic
to sometimes fail. Its fleeting. Sometimes it will fail on only
numbers but work on strings. Sometimes the test will work when run
manually but fail in prove. There's probably some memory corruption
going on.
I've reduced it down to the attached program. It fails on 5.10.1 on OS
X. I wouldn't be surprised if it requires some fiddling to make it fail
on other machines.
$ perl ~/tmp/test.plx
mo called
Can't call method "mo" without a package or object reference at
/Users/schwern/tmp/test.plx line 12.
Let me know if there's anything you need to fix this, including a login.
Its blocking http://github.com/schwern/perl5i/issues/issue/89
Subject: | test.plx |
Message body not shown because it is not plain text.