Aspect::Pointcut::Highest3pm
Pointcut for preventing recursive matching
Usage
use Aspect;# High-level creationmy $pointcut1 = highest;# Manual creationmy $pointcut2 = Aspect::Pointcut::Highest->new;
Overview
For aspects including timers and other Aspect::Advice::Around-based advice, recursion can be significant problem.
The "highest" pointcut solves this problem by matching only on the highest invocation of a function. If the function is called again recursively within the first call, at any depth, the deeper calls will be not match and the advice will not be executed.
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 5 times.