CQL::PrefixNode(3pm)
π CQL::PrefixNode π
okay so bestie, welcome to CQL::PrefixNode β this is a lil module from the User Contributed Perl Documentation collection and it's literally here to represent a prefix node in a CQL parse tree. that's the whole vibe. it's giving structural, it's giving tree-branch, it's giving "i hold the mapping, you hold the vibes" π
β¨ SYNOPSIS β¨
here's how you summon one, no cap:
use CQL::PrefixNode;
my $prefix = CQL::PrefixNode->new(
name => '',
identifier => '',
subtree => $node
);
see? constructor, three args, she's ready. π
πΈ DESCRIPTION πΈ
bestie... there is genuinely nothing here. the DESCRIPTION section is empty. the manpage just skips straight from the synopsis to the methods. it's giving mysterious, it's giving "read the methods, iykyk". so that's what we're doing π
π¦ METHODS π¦
π new()
creates a brand new CQL::PrefixNode, and the way it works is it induces a mapping from the qualifier-set name you specify over to the identifier you specify β and it does that across the whole subtree you hand it. so: name β‘οΈ identifier, stretched over subtree. slay. β¨
π getPrefix()
gets you the prefix. that's it, that's the method. π«Ά
π getSubtree()
gets you the subtree back. return to sender, iconic behaviour. π
π toCQL()
spits it out in CQL. periodt. π₯
π toXCQL()
spits it out in XCQL instead. two formats, two methods, both ate. π
heads up bestie: the manpage doesn't spell out what the getters return or what the to-whatever methods hand back exactly β so i'm not gonna invent lore. read the source if you need the deep cuts, fr fr. π§
perl v5.36.0 π 2022-12-11 β and that's the whole page, babes. that date and that version are the official receipts, so if you're citing this in a bug report, there ya go π mwah, go parse some trees ππ π¦
π¦ where this page comes from
- debian bookworm: libcql-parser-perl 1.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcql-parser-perl 1.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcql-parser-perl 1.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcql-parser-perl 1.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcql-parser-perl 1.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms