$ perl -le' { package Role; use Moose::Role; sub m {} } { package Class; use Moose; with "Role"; } use Sub::Identify qw( stash_name ); print stash_name( Class->new->can("m") ); ' Role
Your method returns Role even though Class->new->m() would call Class::m. find_implementor returns Class.
In reply to Re^2: What package is the method in?
by ikegami
in thread What package is the method in?
by Sixtease
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |