http://www.perlmonks.org?node_id=378315


in reply to Re^2: Overloaded *CORE:: function not behaving correctly
in thread Overloaded *CORE:: function not behaving correctly

I believe this is so that builtins aren't looked up every time they are called, which is almost certainly for speed reasons. Where the fact that this 'builtin overriding behaviour needs to be implemented at compile-time' is documented, I'm not sure. It might be documented in the 3rd Camel, but I can't seem to find hide or hair of it in the standard docs. A patch to the Overriding Built-in Functions section of perlsub is probably needed.
HTH

_________
broquaint

  • Comment on Re^3: Overloaded *CORE:: function not behaving correctly

Replies are listed 'Best First'.
Re^4: Overloaded *CORE:: function not behaving correctly
by ysth (Canon) on Jul 29, 2004 at 08:35 UTC
    Second paragraph starts:
    Overriding may be done only by importing the name from a module at compile time--ordinary predeclaration isn't good enough.