Aspect::Pointcut::Wantarray - A pointcut for the run-time wantarray context


Aspect documentation  | view source Contained in the Aspect distribution.

Index


NAME

Top

Aspect::Pointcut::Wantarray - A pointcut for the run-time wantarray context

SYNOPSIS

Top

  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
  );

DESCRIPTION

Top

The Aspect::Pointcut::Wantarray pointcut allows the creation of aspects that only trap calls made in a particular calling context (list, scalar or void).

AUTHORS

Top

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Top


Aspect documentation  | view source Contained in the Aspect distribution.