Text::Q...dString(3)

πŸ“¦ version 0.09, in arch rolling

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, 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. 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