You almost always want to use exists &subname rather than defined &subname; there's no advantage in excluding declared-but-not-defined subs.
Hmmm... I don't see how including declared-but-not-defined subs could be a good idea either for the particular application I had in mind or for the one I cited.
the lowliest monk
In reply to Re^2: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by tlm
in thread defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |