my $coderef = A::B->can($meth); ... $coderef->("A::B", 25);