brother ab has asked for the wisdom of the Perl Monks concerning the following question:

Two days before I have seen new module in CPAN nodelet - Sub::Versive by Simon Cozens. Later I have discovered two others with the similar intention - Hook::WrapSub and Hook::PrePostCall.

Could anybody compare all these three modules? Which one is better in performance? How are they interact with the debugger and the profiler? Other sufficient issues?

Thanks.

-- brother ab

Replies are listed 'Best First'.
Re: Pre-post subroutine wrappers
by princepawn (Parson) on Feb 22, 2001 at 00:35 UTC
    Good questions. I would add that there is also End by Abigail, but that only adds post-hooks.

    Sub::Versive requires 5.6.1 in its native form, so it may not work with the version of Perl you have installed.