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