.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Text::Query::Solve 3" .TH Text::Query::Solve 3 2024-07-13 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Text::Query::Solve \- Base class for query resolution .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& package Text::Query::SolveSource; \& \& use Text::Query::Parse; \& \& use vars qw(@ISA); \& \& @ISA = qw(Text::Query::Solve); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This module provides a virtual base class for query resolution. .PP It defines the \f(CW\*(C`match\*(C'\fR and \f(CW\*(C`matchscalar\*(C'\fR method that is called by the \f(CW\*(C`Text::Query\*(C'\fR object to apply a query on a data source. .SH METHODS .IX Header "METHODS" .IP "match (EXPR [TARGET])" 4 .IX Item "match (EXPR [TARGET])" If \f(CW\*(C`TARGET\*(C'\fR is a scalar, \f(CW\*(C`match\*(C'\fR returns a true value if the data source specified by \f(CW\*(C`TARGET\*(C'\fR matches the \f(CW\*(C`EXPR\*(C'\fR query expression. If \&\f(CW\*(C`TARGET\*(C'\fR is not given, the match is made against \f(CW$_\fR. .Sp If \f(CW\*(C`TARGET\*(C'\fR is an array, \f(CW\*(C`match\*(C'\fR 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. .Sp If \f(CW\*(C`TARGET\*(C'\fR is a reference to an array, \f(CW\*(C`match\*(C'\fR returns a reference to a (possibly empty) list of all matching elements. .IP "matchscalar (EXPR [TARGET])" 4 .IX Item "matchscalar (EXPR [TARGET])" Behaves just like \f(CW\*(C`MATCH\*(C'\fR when \f(CW\*(C`TARGET\*(C'\fR is a scalar or is not given. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBText::Query\fR\|(3) .SH AUTHORS .IX Header "AUTHORS" Eric Bohlman (ebohlman@netcom.com) .PP Loic Dachary (loic@senga.org) .SH "POD ERRORS" .IX Header "POD ERRORS" Hey! \fBThe above document had some coding errors, which are explained below:\fR .IP "Around line 98:" 4 .IX Item "Around line 98:" You forgot a '=back' before '=head1'