The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Object::Base::Regexp

ABSTRACT

Data-Object Abstract Regexp Class

SYNOPSIS

  package My::Regexp;

  use parent 'Data::Object::Base::Regexp';

  my $re = My::Regexp->new(qr(\w+));

DESCRIPTION

Data::Object::Base::Regexp provides routines for operating on Perl 5 regular expressions.

METHODS

This package implements the following methods.

new

  new(RegexpRef $arg1) : Object

The new method expects a regular-expression object and returns a new class instance.

new example
  # given qr(something to match against)

  package My::Regexp;

  use parent 'Data::Object::Base::Regexp';

  my $re = My::Regexp->new(qr(something to match against));