Text::Q...eString(3)

πŸ“¦ version 0.09, in arch rolling

🌸 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