in reply to Re: Hook::LexWrap and core functions
in thread Hook::LexWrap and core functions

Thank you for your reply ! But,is it possible to wrap it using Hook::LexWrap ? I get a "Can't wrap non-existent subroutine CORE::push"

Replies are listed 'Best First'.
Re^3: Hook::LexWrap and core functions
by ikegami (Patriarch) on Sep 19, 2008 at 22:48 UTC

    Nope, and the error accurately describes the reason you can't. push is not a sub, so you can't get its address, so it can't be wrapped.

    You might be able to wrap *CORE::GLOBAL::push once you create it.

      You were right. After creating CORE::GLOBAL::push , I was able to wrap it . Thanks for your help !