MAN page from Old RedHat 6.X perl-Text-Query-0.07-6.i386.rpm
lib::Text::Query::SolveAdvancedString
Section: User Contributed Perl Documentation (3)
Updated: perl 5.005, patch 03
Index NAME
Text::Query::SolveAdvancedString - Apply query expression on strings
SYNOPSIS
use Text::Query; my $q=new Text::Query('hello and world', -parse => 'Text::Query::ParseAdvanced', -solve => 'Text::Query::SolveAdvancedString', -build => 'Text::Query::BuildAdvancedString'); $q->match('this hello is a world') DESCRIPTION
Applies an expression built by
Text::Query::BuildAdvancedString to a list of strings.
METHODS
- match ([TARGET])
- If TARGET is a scalar, match returns a true value if the string specified by TARGET matches the query object's query expression. If TARGET is not given, the match is made against $_.
If TARGET is an array, match 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 string to match.
If TARGET is a reference to an array, match returns a reference to a (possibly empty) list of all matching elements.
- matchscalar ([TARGET])
- Behaves just like MATCH when TARGET is a scalar or is not given. Slightly faster than MATCH under these circumstances.
AUTHORS
Eric Bohlman (ebohlmanAATTnetcom.com)
Loic Dachary (loicAATTsenga.org)
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- METHODS
- AUTHORS
This document was created byman2html,using the manual pages.