Daniel Perrett
and 1 contributors

NAME

Regexp::Flow::Results - contains Regexp::Flow::Result objects

DESCRIPTION

The purpose of this class is to act as a container for Regexp::Flow::Result objects. The reason it is not a simple arrayref is that is is convenient to be able to consider its boolean and integer value, just like the result of m///.

OVERLOADING

It can be treated as a plain arrayref, in which case it accesses its contents.

It can be treated as a boolean or integer, in which cases it returns the number of matches in the contents.

METHODS

contents

An arrayref, empty by default, but which will contain information on each successful match, as Regexp::Flow::Result objects.

count

A utility function which returns the number of successful matches.

To be determined: does this inspect them for success?

succes

A utility function which returns true or false depending on whether there were successful matches.

To be determined: does this inspect them for success?

SEE ALSO

Regexp::Flow - which uses this module (also for author and copyright information)