in reply to I can

The funny thing is that even though I->can() doesn't return an error, I->can("can") returns undef. So I can can(), but I->cannot ("can").
perldoc UNIVERSAL says:
Perl magically makes these functions [isa, can, and VERSION] act as methods on all objects.
so I guess that's just Perl magic at work.

Update: in view of ikegami's reply, maybe this is a documentation bug as well. Perhaps s/these functions/all functions in package UNIVERSAL/?

Replies are listed 'Best First'.
Re^2: I can
by ikegami (Patriarch) on Jul 01, 2006 at 22:05 UTC