Subject: | autobox breaks $class->can($func) |
autobox hijacks UNIVERSAL::can in such a way that calling can() on a
scalar containing a class name no longer works. It instead treats it as
an autoboxed scalar.
$ perl -wle 'use CGI; print "CGI"->can("new")'
CODE(0x84fe8c)
$ perl -wle 'use CGI; use autobox; print "CGI"->can("new")'
Use of uninitialized value in print at -e line 1.
I'd recommend resolving this ambiguity in favor of $class->can so that
autobox can safely be dropped into existing code and instead provide
autobox_can() and autobox_isa() to resolve the ambiguity.