BSD Ports

devel/p5-Class-Hook 0.06 DragonFly

Add hooks on methods from other classes

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
12.4 KiB, 47.8 KiB installed

Description

Class::Hook enables you to trace methods calls from your code to other classes.

Instead of putting 'use Foo;' in your code, simply type 'use Class::Hook;'. The class Foo is unknown in your code. It will be magically caught by Class::Hook which will call Foo itself. You can see Class::Hook as a kind of relay.

You can setup a subroutine to be called before any call to Foo->amethod and a subroutine to be called after the call. Your subs will receive all the information that Foo->amethod will receive, so you can trace everything between your code and Foo.

In the other systems

SystemPortVersion
DragonFlydevel/p5-Class-Hook0.06
FreeBSDdevel/p5-Class-Hook0.06
HardenedBSDdevel/p5-Class-Hook0.06
GhostBSDdevel/p5-Class-Hook0.06

Install

Binary package:

pkg install p5-Class-Hook

From DPorts:

cd /usr/dports/devel/p5-Class-Hook && make install clean

Dependencies

Run dependencies 1

No port depends on this one.