in reply to Re: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
in thread defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
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.
|
|---|