Catman...r::raw(3pm)
π Catmandu::Importer::SRU::Parser::raw β the 3pm girlie edition π
okay bestie so this is a Perl manual page (a 3pm, meaning it's user contributed Perl documentation, the little section of the Perl man pages where the CPAN girlies live) and it's for Catmandu::Importer::SRU::Parser::raw. The whole package is basically: SRU responses walk in, a plain Perl hash walks out. no cap. π¦
β¨ NAME β¨
Catmandu::Importer::SRU::Parser::raw β the package that transforms SRU responses into a Perl hash. that's the whole job. she's simple, she's effective, she's iconic. π
πΈ SYNOPSIS πΈ
here's the vibe, literally copy-paste this energy:
my $importer = Catmandu::Importer::SRU->new(
base => 'http://www.unicat.be/sru',
query => '(isbn=0855275103 or isbn=3110035170 or isbn=9010017362 or isbn=9014026188)',
recordSchema => 'marcxml',
parser => 'raw',
);
see that parser => 'raw'? that's her. that's the moment she enters the group chat. β¨
π DESCRIPTION π
so what she does is: every single SRU record gets transformed into a Perl hash, and that hash is carrying these fields, bestie, take notes π:
recordSchemaβ the SRU record schema. you can peek at it at<http://www.loc.gov/standards/sru/recordSchemas/>if you're feeling academic πrecordPackingβ the SRU format. she can be'string'or she can be'xml', both are valid, both are slaying πrecordPositionβ the result number, aka her place in line, aka her ranking πrecordDataβ the unparsed record payload. raw. untouched. exactly how she came into this world. π
like, no extra processing, no glow-up, no filter β the data arrives and she hands it to you exactly as-is. it's giving honesty. it's giving transparency. we love a parser with nothing to hide. π
π₯ SEE ALSO π₯
Catmandu::Importer::SRU::Parser::metaβ go check out her sister, she's also that girl π
π«Ά AUTHOR π«Ά
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be> β thank you king, we appreciate you π
okay and for the cute sign-off: this page is from perl v5.38.2, dated 2021-09-02, and it's filed under Catmandu...r::raw(3pm) in the user contributed Perl docs. mwah. bye bestie, go parse something pretty πβπ
π¦ 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