man Text::Query::Solve () - Base class for query resolution

NAME

Text::Query::Solve - Base class for query resolution

SYNOPSIS

    package Text::Query::SolveSource;

    use Text::Query::Parse;

    use vars qw(@ISA);

    @ISA = qw(Text::Query::Solve);

DESCRIPTION

This module provides a virtual base class for query resolution.

It defines the CWmatch and CWmatchscalar method that is called by the CWText::Query object to apply a query on a data source.

METHODS

match (EXPR [TARGET])
If CWTARGET is a scalar, CWmatch returns a true value if the data source specified by CWTARGET matches the CWEXPR query expression. If CWTARGET is not given, the match is made against CW$_. If CWTARGET is an array, CWmatch returns a (possibly empty) list of all matching elements. If the elements of the array are references to sub- arrays, the match is done against the first element of each sub-array. This allows arbitrary information (e.g. filenames) to be associated with each data source to match. If CWTARGET is a reference to an array, CWmatch returns a reference to a (possibly empty) list of all matching elements.
matchscalar (EXPR [TARGET])
Behaves just like CWMATCH when CWTARGET is a scalar or is not given.

SEE ALSO

AUTHORS

Eric Bohlman (ebohlman@netcom.com) Loic Dachary (loic@senga.org)