can could potentionally match subs in parent classes, such as test in the following example:
package pkgA; sub test {} package pkgB; our @ISA = qw( pkgA ); our @test; { no strict 'refs'; @methods = grep $pkg->can( $_ ), keys %{ $pkg . '::' }; }
In reply to Re: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by ikegami
in thread defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |