in reply to Re^3: Canon concerning coderef calls?
in thread Canon concerning coderef calls?

I agree with all your notes, revdiablo.

I particularly like the self-documenting "UNIVERSAL::can" call, although research shows that the "can" method (or allegedly exported sub) does not really exist in any module - documentation says it is built into perl.

    Earth first! (We'll rob the other planets later)

Replies are listed 'Best First'.
Re^5: Canon concerning coderef calls?
by revdiablo (Prior) on Nov 16, 2004 at 06:06 UTC
    research shows that the "can" method (or allegedly exported sub) does not really exist in any module - documentation says it is built into perl

    I suppose it all depends on what you mean by "built into perl." It's true that it's part the perl core, and can be relied on being there. But that's only because UNIVERSAL is the base class for all classes. If you run perldoc -f can, or browse through perlfunc, you will see that can is not a builtin function in the strict sense of the term.