Text::Q...eString(3)
πΈ NAME πΈ
This is Text::Q...eString(3) from User Contributed Perl Documentation, and the main character is Text::Query::SolveSimpleString β apply query expression on strings. π
π SYNOPSIS π
use Text::Query;
my $q=new Text::Query('+hello +world',
-parse => 'Text::Query::ParseSimple',
-solve => 'Text::Query::SolveSimpleString',
-build => 'Text::Query::BuildSimpleString');
$q->match('this hello is a world')
π DESCRIPTION π
Lowkey it applies an expression built by Text::Query::BuildSimpleString to a list of strings. Thatβs the whole vibe. β¨
π¦ METHODS π¦
match ([TARGET])
Okay so match has range. 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 (
ebohlman@netcom.com) - Loic Dachary (
loic@senga.org) - Jon Jensen,
jon@endpoint.com
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 118: You forgot a'=back'before'=head1'
Later, bestie: this page is from perl v5.38.2, dated 2024-07-13, and its manual name is Text::Q...eString(3). π«Άβ¨
π¦ where this page comes from
- arch rolling: perl-text-query 0.09-5 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms