Text::Q...dString(3)
okay so bestie, welcome to the Text::Q...dString(3) page β it's from the User Contributed Perl Documentation, and it's here to explain applying query expressions to strings. It's giving βI know Perl and I want you to know it tooβ energy, fr fr β¨
β¨ NAME β¨
Text::Query::SolveAdvancedString - Apply query expression on strings. Periodt π
π¦ SYNOPSIS π¦
Here's the exact group-chat recipe, untouched and iconic:
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. That's the whole assignment, and it ate. π«Ά
π METHODS π
π match ([TARGET]) π
- If TARGET is a scalar,
matchreturns 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,
matchreturns 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,
matchreturns a reference to a (possibly empty) list of all matching elements. π
β‘ matchscalar ([TARGET]) β‘
- Behaves just like
MATCHwhen TARGET is a scalar or is not given. Slightly faster thanMATCHunder these circumstances. No cap, it's just a little speed boost. π₯
π AUTHORS π
The brilliant humans behind this:
- Eric Bohlman (
ebohlman@netcom.com) - Loic Dachary (
loic@senga.org)
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 104: You forgot a '=back' before '=head1'
Not me catching a little POD oopsie π
With all the love, perl v5.38.2 β dated 2024-07-13 β and Text::Q...dString(3) are signing off π
β¨π¦
π¦ 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