PPIx::Regexp::Token::Operator(3pm)

PPIx::Regexp::Token::Operator3pm

Represent an operator.

Usage

 use PPIx::Regexp::Dumper;
 PPIx::Regexp::Dumper->new( 'qr{foo|bar}smx' )
     ->print();

Inheritance

"PPIx::Regexp::Token::Operator" is a PPIx::Regexp::Token.

"PPIx::Regexp::Token::Operator" has no descendants.

Overview

This class represents an operator. In a character class, it represents the negation ("^") and range ("-") operators. Outside a character class, it represents the alternation ("|") operator.

Methods

This class provides no public methods beyond those provided by its superclass.

operation

This method returns the name of the operation performed by the operator. This depends not only on the operator itself but its context:

In a bracketed character class
    '-' => 'range',
    '^' => 'inversion',
In an extended bracketed character class
    '&' => 'intersection',
    '+' => 'union',
    '|' => 'union',
    '-' => 'subtraction',
    '^' => 'symmetric_difference',
    '!' => 'complement',
Outside any sort of bracketed character class
    '|' => 'alternation',

Support

Support is by the author. Please file bug reports at <https://github.com/trwyant/perl-PPIx-Regexp/issues> or in electronic mail to the author.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

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

Author

Thomas R. Wyant, III harryfmudd at comcast dot net

From perl-ppix-regexp 0.092-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.