Subject: | Thinks Class->can("foo") is a function call. |
$ perl -MUNIVERSAL::can -wle 'Foo->can("bar")'
Called UNIVERSAL::can() as a function, not a method at -e line 1
UNIVERSAL::isa does not have this problem.
For some reason the check on line 46 is returning false.
UNIVERSAL::can::can(/usr/local/lib/site_perl/UNIVERSAL/can.pm:46):
46: my $can = eval { $_[0]->$orig('can') || 0 };
DB<2> s
UNIVERSAL::can::can(/usr/local/lib/site_perl/UNIVERSAL/can.pm:49):
49: goto &$orig if $can == \&UNIVERSAL::can;
DB<2> x $_[0]->$orig("can")
0 undef