Aspect::Pointcut::Wantarray3pm
A pointcut for the run-time wantarray context
Usage
use Aspect;# High-level creationmy $pointcut1 = wantlist | wantscalar | wantvoid;# Manual creationmy $pointcut2 = Padre::Pointcut::Or->new(Padre::Pointcut::Wantarray->new( 1 ), # ListPadre::Pointcut::Wantarray->new( 0 ), # ScalarPadre::Pointcut::Wantarray->new( undef ), # Void);
Overview
The "Aspect::Pointcut::Wantarray" pointcut allows the creation of aspects that only trap calls made in a particular calling context (list, scalar or void).
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 5 times.