CQL::Prefix(3pm)

πŸ“¦
version 1.13 Β· 2 versions
  • 1.13 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.13 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– CQL::Prefix πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally all about CQL::Prefix β€” a whole module for representing a CQL prefix mapping. it's giving tiny module, big main character energy. ✨


🌸 NAME 🌸

CQL::Prefix β€” it represents a CQL prefix mapping. that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so first things first, you gotta pull it in:

use CQL::Prefix;

that's it, that's the synopsis. slay. πŸ’…


✨ DESCRIPTION ✨

so what does this thing actually do? it represents a CQL prefix mapping from short name to long identifier. short thing in, long thing out. iconic behavior honestly. πŸ‘‘


πŸ’œ METHODS πŸ’œ

new()

okay so when you're constructing this bad boy, you need to pass in the name and identifier parameters. like, no cap, both of them. it's not optional. 🫢

  • name β€” this is the short name of the prefix mapping. that means the prefix itself, like dc, exactly as it might show up in a qualifier like dc.title.
  • identifier β€” and this one is the name of the prefix mapping. typically it's a URI that's permanently allocated to a specific qualifier set, like http://zthes.z3950.org/cql/1.0.

here's how you'd actually do it:

my $prefix = CQL::Prefix->new(
    name        => 'dc',
    identifier  => 'http://zthes.z3950.org/cql/1.0'
);

look at that. beautiful. gorgeous. πŸ’–

getName()

yep, it gets the name. 🌸

getIdentifier()

and yep, it gets the identifier. πŸ¦‹


ngl bestie, that's the whole page β€” it's a short one, but every bit of it ate. no filler, all substance. periodt. πŸ’€

that's a wrap, my love 🫢 this was CQL::Prefix from the User Contributed Perl Documentation, brought to you by perl v5.36.0, dated 2022-12-11. go forth and prefix responsibly. πŸ’…βœ¨

πŸ“¦ where this page comes from