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


in reply to Re: Find out who redefined a subroutine
in thread Find out who redefined a subroutine

Aha, so there *is* a full-blown CPAN module for this. Thanks for noting!

My code can be fooled, too.

Just copy original subref to a private variable and it would think the sub is still the original one.

Replies are listed 'Best First'.
Re^3: Find out who redefined a subroutine
by mwray (Initiate) on Feb 13, 2013 at 00:11 UTC
    Maybe a way to prevent being fooled is to MD5 the sub, and sign it.