XML::Pa...onTempl(3)
π XML::Pa...onTempl(3) β the girlies' guide
okay so first things first: this is a User Contributed Perl Documentation page, and the whole thing is literally titled XML::Pa...onTempl(3) β yes the name is truncated with dots, no that's not a typo, that's just how the file is named, we love an ellipsis moment β¨
πΈ NAME πΈ
XML::PatAct::ACTION β an action module for
(yes bestie, the sentence just ends there. that's the whole name line. it's giving mysterious. iykyk π )
π SYNOPSIS π
use XML::PatAct::ACTION;
my $patterns = [ PATTERN => ACTION,
... ];
my $matcher = XML::PatAct::ACTION->new(Patterns => $patterns,
Matcher => $matcher );
look at that. use the module, build your $patterns arrayref as a list of PATTERN => ACTION pairs (dot dot dot means you fill in the rest, i'm not doing your homework), then call new() with Patterns and Matcher. slay. π¦
β¨ DESCRIPTION β¨
XML::PatAct::ACTION is a PerlSAX handler for applying pattern-action lists to XML parses or trees. no cap, that's the job description. and then the sentence goes XML::PatAct::ACTION ... and trails off, because this is a template, and the template is literally waiting for you to finish it. main character energy is required here, bestie π
New XML::PatAct::ACTION instances are creating by calling new(). (that's the original phrasing, "are creating", and i'm keeping it, we don't fix the source text, we respect it π«Ά)
You can pass parameters as a list of key, value pairs or a hash. iconic, flexible, we stan.
The Patterns and Matcher options are required β like, non-negotiable, they're the whole point:
Patternsβ the pattern-action list to apply. this is your to-do list for the XML.Matcherβ an instance of the pattern or query matching module. this is the friend who actually knows where everything is.
π DESCRIBE THE FORMAT OF YOUR ACTIONS HERE
^ that line is in the original. it's screaming at you in all caps. it's a template. go write your action format there. i believe in you. π
π AUTHOR π
This template file was written by Ken MacLeod, ken@bitsko.slc.ut.us β thank you Ken, king behavior, we appreciate you π
π§ SEE ALSO π§
perl(1)- "Using PatAct Modules" and "Creating PatAct Modules" in libxml-perl.
go read those if you want the full lore, i'm just the messenger π¦
πΈ oh and also β this is perl v5.42.0, dated 2024-03-04. mwah, bye bestie, go write your actions π β¨ π
π¦ 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