in reply to Re: How do you determine if a user-defined function exists?
in thread How do you determine if a user-defined function exists?

ikegami++, good reply. The only thing I'd do differently is use the class method syntax for calling UNIVERSAL::can. I think it looks nicer:

__PACKAGE__->can('myfunc'); $pkg->can('myfunc');

Replies are listed 'Best First'.
Re^3: How do you determine if a user-defined function exists?
by chromatic (Archbishop) on Nov 30, 2004 at 02:58 UTC

    Not only does it look nicer (especially with CLASS), but it allows packages and modules to overload can() too.