in reply to Re^3: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
in thread defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )

Pre-declaring subs is the responsible way to use AUTOLOAD.

I wasn't aware of this convention. Good to know. Thanks.

the lowliest monk

  • Comment on Re^4: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )