It's worth noting that these tests can be fooled by AUTOLOAD and other aspects of the run-time dynamicity of perl.
The second one fails only if you write broken code.
In reply to Re^2: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by chromatic
in thread defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |