Aspect::Pointcut::Wantarray(3pm)

Aspect::Pointcut::Wantarray3pm

A pointcut for the run-time wantarray context

Usage

  use Aspect;
  
  # High-level creation
  my $pointcut1 = wantlist | wantscalar | wantvoid;
  
  # Manual creation
  my $pointcut2 = Padre::Pointcut::Or->new(
    Padre::Pointcut::Wantarray->new( 1 ),     # List
    Padre::Pointcut::Wantarray->new( 0 ),     # Scalar
    Padre::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.

  1. 6.0
  2. 7
  3. 8–10
  4. 11
  5. 12
  6. 13

Authors

Adam Kennedy <[email protected]>

From libaspect-perl 1.04-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.