Make 42->isa("UNIVERSAL") work #114

schwern opened this Issue Mar 17, 2010 · 2 comments


None yet
2 participants

schwern commented Mar 17, 2010

autobox 2.60changed isa() and can() (at our request) but now 42->isa("UNIVERSAL") no longer works. But autoboxed things do inherit from UNIVERSAL.

$ perl -wle 'use autobox; sub UNIVERSAL::echo { print "@_" } print "Yes" if 42->isa("UNIVERSAL"); 42->echo '

Make it work, either by getting autobox fixed or fixing it internally.


notbenh commented Mar 19, 2013

I think this is related to #42 as getting is_instance is really just a little wrapper around ->isa that will fail over to check for ref in worst case.

schwern added a commit that referenced this issue Mar 20, 2013


schwern commented Mar 20, 2013

There's a test in t/everything_is_an_object.t for this. I just made it a TODO test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment