p5-Hook-LexWrap

lexically scoped subroutine wrappers

WWW CVSWeb GITHub
  1. Package version
    p5-Hook-LexWrap-0.26p0
  2. Maintainer
    The OpenBSD ports mailing-list

Hook::LexWrap allows you to install a pre- or post-wrapper (or both)
around an existing subroutine. Unlike other modules that provide this
capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap
implements wrappers in such a way that the standard `caller' function
works correctly within the wrapped subroutine.

  • devel/p5-Module-Build-Tiny