The defined way that merlyn did is the safest for general use (I would think), but there are specialized uses that may prefer can().
In reply to Re: defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by dragonchild
in thread defined &{ $pkg . '::foo' } vs. $pkg->can( 'foo' )
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |