[OT] best way to determine existence of a function in a package

Matt S Trout dbix-class at trout.me.uk
Mon Nov 19 17:56:49 GMT 2007

On Mon, Nov 19, 2007 at 11:16:08AM +0000, Paul LeoNerd Evans wrote:
> On Mon, 19 Nov 2007 09:53:41 +0000
> Dirk Koopman <djk at tobit.co.uk> wrote:
> > A user may include a local version of a package which may include one or 
> >   more local versions of a static function (there are no references, 
> > blessed or otherwise to ->can() on).
> You don't need a reference. I've always found that UNIVERSAL::can() works

FSVO works.

You should never, ever, EVER use any UNIVERSAL::* as a function. That's not
what it's for, not how it's designed to work and can seriously fuck things

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the london.pm mailing list