logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Aspect::Pointcut::Highest - Pointcut for preventing recursive matching

Authors

       Adam Kennedy <adamk@cpan.org>

       Marcel Grünauer <marcel@cpan.org>

       Ran Eilam <eilara@cpan.org>

Description

       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.

Name

       Aspect::Pointcut::Highest - Pointcut for preventing recursive matching

Synopsis

         use Aspect;

         # High-level creation
         my $pointcut1 = highest;

         # Manual creation
         my $pointcut2 = Aspect::Pointcut::Highest->new;

See Also