Catman...:Parser(3pm)
π Catmandu::Importer::SRU::Parser π
okay bestie, welcome to the glow-up page for Catmandu::Importer::SRU::Parser, straight out of the User Contributed Perl Documentation section of the manual (3pm, iykyk). this one's short but it's mighty π«Ά
β¨ NAME β¨
Catmandu::Importer::SRU::Parser β the package that transforms SRU responses into Perl, no cap π¦
πΈ SYNOPSIS πΈ
package MyParser;
use Moo;
sub parse {
my ($self,$record) = @_;
my $schema = $record->{recordSchema};
my $packing = $record->{recordPacking};
my $data = $record->{recordData};
... do some magic...
return $perl_hash;
}
likeβ¦ look at her. Moo, a parse sub, and then magic β¨ (the magic is you, you're the magic π
).
π DESCRIPTION π
so here's the tea β Catmandu::Importer::SRU can optionally include a parser to transform the returned records from SRU requests. that's it, that's the whole vibe β optional but iconic π
and literally any parser you plug in has to implement one instance method: parse π§
that method gets an SRU-record handed to it, and it hands back a perl hash. simple. elegant. main character energy π
ngl bestie, that's the whole contract: one method in, one hash out. don't overthink it π
π AUTHOR π
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be> β an actual legend, we stan π
π« that's a wrap π«
this page was living in perl v5.38.2, dated 2021-09-02, and honestly? she ate. periodt π
β¨
bye bestie, go parse something gorgeous ππΈπ¦
π¦ where this page comes from
- ubuntu noble: libcatmandu-sru-perl 0.43.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-sru-perl 0.43.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-sru-perl 0.43.0-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