GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Text::Query::SolveAdvancedString(3) User Contributed Perl Documentation Text::Query::SolveAdvancedString(3)

Text::Query::SolveAdvancedString - Apply query expression on strings

  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')

Applies an expression built by "Text::Query::BuildAdvancedString" to a list of strings.

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.

Eric Bohlman (ebohlman@netcom.com)

Loic Dachary (loic@senga.org)

Hey! The above document had some coding errors, which are explained below:
Around line 104:
You forgot a '=back' before '=head1'
2013-08-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.