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

I don't see why. Pre-declaring subs is the responsible way to use AUTOLOAD. Why would you want to disallow it in your delegatees? Anyway, this qualifies as a difference between ->can and defined&.
  • Comment on Re^3: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )

Replies are listed 'Best First'.
Re^4: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by tlm (Prior) on Jul 15, 2005 at 20:48 UTC

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

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

    the lowliest monk