XML::Pa...ernTempl(3)
π¦ NAME π¦
okay so XML::Pa...ernTempl(3) is the user-contributed Perl doc for this β and real talk, XML::PatAct::PATTERN is a pattern module for ... yeah, the sentence just ends there π that's how the template ships, bestie, it's giving "fill in the blank" energy and we respect it.
β¨ SYNOPSIS β¨
here's the vibe check on how you'd actually use it:
use XML::PatAct::PATTERN;
my $patterns = [ PATTERN => ACTION,
... ]
my $matcher = XML::PatAct::PATTERN->new( Patterns => $patterns );
like, $patterns is your list of PATTERN => ACTION pairs (and yeah, the ... means "and more of those, you get it"), and then you hand that whole thing to ->new( Patterns => $patterns ) and boom π₯ you got a $matcher.
π DESCRIPTION π
so XML::PatAct::PATTERN is a pattern module, and its whole job is teaming up with PatAct action modules so you can apply pattern-action lists to XML parses or trees. iconic collab honestly π«Ά
then the line just goes XML::PatAct::PATTERN ... and leaves us hanging π β that's the template being a template.
Parameters can be passed either as a list of key, value pairs or as a hash. both work, pick your fighter β¨
and then there's this, screaming in all caps at you:
DESCRIBE THE FORMAT OR LANGUAGE OF YOUR PATTERNS HERE
not me getting yelled at by a placeholder π β that's literally the instruction telling you (yes, YOU) to write your pattern format or language right there. main character homework assignment fr fr π
π AUTHOR π
This template file was written by Ken MacLeod, ken@bitsko.slc.ut.us β shoutout to the template king πβ
πΈ SEE ALSO πΈ
perl(1)β the classic, always relevant, the blueprint π- "Using PatAct Modules" and "Creating PatAct Modules" in libxml-perl β go read these if you wanna actually understand the PatAct ecosystem, iykyk π₯
and that's the whole page, bestie β¨π¦π
cute little sign-off: this was perl v5.42.0, dated 2024-03-04 β so if you're reading this way later, bestie it's vintage ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms