How to Install libhook-wrapsub-perl in Ubuntu 18.04



Install libhook-wrapsub-perl by entering the following commands in the terminal:

sudo apt update
sudo apt install libhook-wrapsub-perl

Description:

module to wrap subs with pre- and post-call hooks

Hook::WrapSub lets you wrap a function, providing one or both of functions that are called just before and just after, whenever the wrapped function is called. . The wrap_subs() function enables intercepting a call to any named function; handlers may be added both before and after the call to the intercepted function.

Homepage: https://metacpan.org/release/Hook-WrapSub

Version: 0.07-1

Section: universe/perl