Catman...arc_add(3pm)
π Catman...arc_add(3pm) π
okay bestie, so this page is literally called Catman...arc_add(3pm) (yes the name is truncated, we don't make the rules, we just vibe with it) and it lives in the User Contributed Perl Documentation section of the manual. it's the 3pm flavor, so it's a Perl module page. and uhβ¦ it's deprecated. we'll get to that. π«Ά
πΈ NAME πΈ
Catmandu::Fix::Inline::marc_add β a marc_add-er for Perl scripts. and yes, it is DEPRECATED. no cap, they put it right in the NAME section, that's how serious they are about it. π
β¨ SYNOPSIS β¨
here's the whole vibe, copy-paste ready:
use Catmandu::Fix::Inline::marc_add qw(:all);
# Set to a literal value
my $data = marc_add($data, '245', a => 'value');
# Set to a copy of a deeply nested JSON path
my $data = marc_add($data, '245', a => '$.my.deep.field');
so you pull in the whole module with qw(:all), and then it's just marc_add($data, '245', a => 'value') energy. first example sets that a subfield to a literal 'value'. second one? it sets it to a copy of a deeply nested JSON path β that's the '$.my.deep.field' bit, and yes the $ and the dots are doing heavy lifting there. π
π¨ DEPRECATED π¨
okay bestie, sit down, this is the important part.
This module is deprecated. Use the inline functionality of Catmandu::Fix::marc_add instead.
like. that's it. that's the whole section. the module still exists, but it's giving "we're not mad we're just disappointed" and you should lowkey migrate. use the inline functionality of Catmandu::Fix::marc_add. periodt. π
π SEE ALSO π
Catmandu::Fix::marc_addβ the glow-up. the replacement. the main character. go here instead, fr fr. π
π β¨ π that's the whole page, bestie π β¨ π
this was served up from the perl v5.38.2 docs, dated 2024-08-03, and honestly it ate. now go use Catmandu::Fix::marc_add like a responsible icon. mwah ππ
π¦ where this page comes from
- debian trixie: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-marc-perl 1.320-1 Β· 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