Have you seen/tried Overriding-Built-in-Functions?
In reply to Re: override CORE sub and keep method in same package by BrowserUk in thread override CORE sub and keep method in same package by bulk88